iverilog/ivtest/ivltests/task_in_expr_fail.v

15 lines
249 B
Coq
Raw Normal View History

// Check that an error is reported when a task is used in an expression
module test;
task t;
endtask
initial begin
int x;
x = t() + 1; // This should fail, task can not be used in expression
$display("FAILED");
end
endmodule