mirror of
https://github.com/verilator/verilator.git
synced 2025-01-03 21:27:35 +00:00
Tests: Fix t_assigndly_dynamic_notiming_bad to survive new dead code elimination
This commit is contained in:
parent
f039a94744
commit
fc9b66b078
@ -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
|
6
test_regress/t/t_assigndly_dynamic_notiming_bad.out
Normal file
6
test_regress/t/t_assigndly_dynamic_notiming_bad.out
Normal 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
|
@ -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
|
Loading…
Reference in New Issue
Block a user