blob: a492e2b67b9e9f59040ab6fcee94739cd1ac10d5 [file] [log] [blame]
/*
:name: task_static
:description: static task test
:should_fail: 0
:tags: 13.3.1
:type: simulation parsing
*/
module top();
task static mytask(int test);
int a = 0;
a++;
if (test)
$display(":assert:(%d != 1)", a);
else
$display(":assert:(%d == 1)", a);
endtask
initial
begin
mytask(0);
mytask(1);
mytask(1);
mytask(1);
end
endmodule