blob: 480af47e48bf8f2e4aade9085ff959c06e970a76 [file] [log] [blame]
/*
:name: sscanf_task
:description: $sscanf test
:should_fail: 0
:tags: 21.3
:type: simulation parsing
*/
module top();
string str = "1234";
int c;
initial begin
$sscanf(str, "%d", c);
$display(":assert: (%d == %s)", c, str);
end
endmodule