Files
iverilog/ivtest/ivltests/automatic_error18.v
T
Lars-Peter Clausen c4397e66f9 Add regression tests for automatic terms in cast expressions
Check that a sign, width or type cast expression that contains an automatic
term is detected as such and can not be used as the left-hand side in a
procedural continuous assignment.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2022-12-11 20:08:33 -08:00

23 lines
346 B
Verilog

// Check that an expression is correctly detected to contain an automatic
// variable if the variable is in a SystemVerilog type cast expression.
module test;
reg g;
task automatic auto_task;
reg l;
begin: block
assign g = reg'(l);
end
endtask
initial begin
auto_task;
$display("FAILED");
end
endmodule