Tests: Fix t_assigndly_dynamic_notiming_bad to survive new dead code elimination

This commit is contained in:
Wilson Snyder 2023-12-02 15:57:38 -05:00
parent f039a94744
commit fc9b66b078
4 changed files with 20 additions and 11 deletions

View File

@ -1,6 +0,0 @@
%Error-NOTIMING: t/t_assigndly_dynamic_notiming.v:10:13: Delayed assignment in a non-inlined function/task requires --timing
: ... note: In instance '$unit::foo'
10 | qux <= '1;
| ^~
... For error description see https://verilator.org/warn/NOTIMING?v=latest
%Error: Exiting due to

View File

@ -0,0 +1,6 @@
%Error-NOTIMING: t/t_assigndly_dynamic_notiming_bad.v:10:11: Delayed assignment in a non-inlined function/task requires --timing
: ... note: In instance '$unit::Cls'
10 | qux <= '1;
| ^~
... For error description see https://verilator.org/warn/NOTIMING?v=latest
%Error: Exiting due to

View File

@ -4,9 +4,18 @@
// without warranty, 2023 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
class foo;
task bar;
int qux;
qux <= '1;
endtask
class Cls;
task bar;
int qux;
qux <= '1;
endtask
endclass
module t;
initial begin
Cls c;
c.bar();
$write("*-* All Finished *-*\n");
$finish;
end
endmodule