verilator/test_regress/t/t_assign_cont_automatic_bad.v

21 lines
415 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2026 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t;
reg g;
task automatic tsk;
reg l;
begin: cont_block
assign g = signed'(l); // <--- BAD: using automatic in cont assignment
end
endtask
initial $stop;
endmodule