iverilog/ivtest/ivltests/sv_const_fail6.v

17 lines
226 B
Coq
Raw Normal View History

// Check that binding a const variable to a task output port fails.
module test;
const integer x = 10;
task t(output integer x);
x = 20;
endtask
initial begin
t(x);
$display("FAILED");
end
endmodule