verilator/test_regress/t/t_func_task_bad.v

18 lines
369 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, 2011 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t;
2025-09-24 01:51:34 +02:00
initial begin
if (a_task(1'b0)) $stop; // <--- Bad: Calling task _as_ function
end
2025-09-24 01:51:34 +02:00
task a_task;
input ign;
endtask
endmodule