From eb6ce0799cada011184e129a64a6668928fd43f2 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 16 Nov 2025 17:16:21 -0500 Subject: [PATCH] Tests (#6698 testcase only) --- test_regress/t/t_class_virtual_pure.v | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/test_regress/t/t_class_virtual_pure.v b/test_regress/t/t_class_virtual_pure.v index cfbe9c03d..7c33da780 100644 --- a/test_regress/t/t_class_virtual_pure.v +++ b/test_regress/t/t_class_virtual_pure.v @@ -5,20 +5,27 @@ // SPDX-License-Identifier: CC0-1.0 virtual class VBase; - pure virtual function int hello(); + pure virtual function int hello(); + // See Issue #6698; appears IEEE illegal + // pure virtual task automatic fin(); + pure virtual task fin(); endclass class VA extends VBase; - virtual function int hello; - return 2; - endfunction + virtual function int hello; + return 2; + endfunction + virtual task automatic fin; + $write("*-* All Finished *-*\n"); + $finish; + endtask endclass module t; - initial begin - VA va = new; - if (va.hello() != 2) $stop; - $write("*-* All Finished *-*\n"); - $finish; - end + initial begin + VA va; + va = new; + if (va.hello() != 2) $stop; + va.fin(); + end endmodule