From 1a1f9198823e43688a552b82e4792aa478622a78 Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Fri, 8 Sep 2023 08:51:54 +0200 Subject: [PATCH] Check the output in t_class_method_str_literal.v (#4459) --- test_regress/t/t_class_method_str_literal.v | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test_regress/t/t_class_method_str_literal.v b/test_regress/t/t_class_method_str_literal.v index 3e5e9225d..5f6309c02 100644 --- a/test_regress/t/t_class_method_str_literal.v +++ b/test_regress/t/t_class_method_str_literal.v @@ -7,21 +7,21 @@ module t; class T; - function automatic void print_str(input string a_string); - $display(a_string); + function automatic string return_str(input string a_string); + return a_string; endfunction - static function automatic void static_print_str(input string a_string); - $display(a_string); + static function automatic string static_return_str(input string a_string); + return a_string; endfunction endclass initial begin T t_c = new; - t_c.print_str("function though member"); - t_c.static_print_str("static function through member"); - T::static_print_str("static function through class"); + if (t_c.return_str("A") != "A") $stop; + if (t_c.static_return_str("B") != "B") $stop; + if (T::static_return_str("C") != "C") $stop; $write("*-* All Finished *-*\n"); $finish; end