diff --git a/test_regress/t/t_assigndly_dynamic_notiming.out b/test_regress/t/t_assigndly_dynamic_notiming.out deleted file mode 100644 index 7fe77946a..000000000 --- a/test_regress/t/t_assigndly_dynamic_notiming.out +++ /dev/null @@ -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 diff --git a/test_regress/t/t_assigndly_dynamic_notiming_bad.out b/test_regress/t/t_assigndly_dynamic_notiming_bad.out new file mode 100644 index 000000000..687d05541 --- /dev/null +++ b/test_regress/t/t_assigndly_dynamic_notiming_bad.out @@ -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 diff --git a/test_regress/t/t_assigndly_dynamic_notiming.pl b/test_regress/t/t_assigndly_dynamic_notiming_bad.pl similarity index 100% rename from test_regress/t/t_assigndly_dynamic_notiming.pl rename to test_regress/t/t_assigndly_dynamic_notiming_bad.pl diff --git a/test_regress/t/t_assigndly_dynamic_notiming.v b/test_regress/t/t_assigndly_dynamic_notiming_bad.v similarity index 51% rename from test_regress/t/t_assigndly_dynamic_notiming.v rename to test_regress/t/t_assigndly_dynamic_notiming_bad.v index f4b96c4de..b2f77420a 100644 --- a/test_regress/t/t_assigndly_dynamic_notiming.v +++ b/test_regress/t/t_assigndly_dynamic_notiming_bad.v @@ -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