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