From 9637c62dfeb3306abd5c49d16ec668b2bfe1fc2a Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 29 Sep 2026 17:45:58 -0400 Subject: [PATCH] Tests: Repair new test (#8538 repair) --- test_regress/t/t_assoc_wildcard_bad.out | 4 ++++ test_regress/t/t_class_handle_to_string_port.out | 6 +++--- test_regress/t/t_class_handle_to_string_port.py | 1 - ...le_to_string_port.sv => t_class_handle_to_string_port.v} | 5 ++++- 4 files changed, 11 insertions(+), 5 deletions(-) rename test_regress/t/{t_class_handle_to_string_port.sv => t_class_handle_to_string_port.v} (70%) diff --git a/test_regress/t/t_assoc_wildcard_bad.out b/test_regress/t/t_assoc_wildcard_bad.out index 58322f10b..9934c3636 100644 --- a/test_regress/t/t_assoc_wildcard_bad.out +++ b/test_regress/t/t_assoc_wildcard_bad.out @@ -71,6 +71,10 @@ : ... note: In instance 't' 43 | a[x] = "bad"; | ^ +%Error: t/t_assoc_wildcard_bad.v:43:7: Cannot convert 'class{}' handle to a string:'class{}Cls' + : ... note: In instance 't' + 43 | a[x] = "bad"; + | ^ %Error: t/t_assoc_wildcard_bad.v:45:7: Unknown wildcard associative array method 'bad_not_defined' : ... note: In instance 't' 45 | a.bad_not_defined(); diff --git a/test_regress/t/t_class_handle_to_string_port.out b/test_regress/t/t_class_handle_to_string_port.out index 4fbe5cc4d..66e74e384 100644 --- a/test_regress/t/t_class_handle_to_string_port.out +++ b/test_regress/t/t_class_handle_to_string_port.out @@ -1,6 +1,6 @@ -%Error: t/t_class_handle_to_string_port.sv:18:9: Cannot convert 'class{}' handle to a string:'class{}Base' - : ... note: In instance 't' - 18 | c.f(seq); +%Error: t/t_class_handle_to_string_port.v:21:9: Cannot convert 'class{}' handle to a string:'class{}Base' + : ... note: In instance 't' + 21 | c.f(seq); | ^~~ ... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance. %Error: Exiting due to diff --git a/test_regress/t/t_class_handle_to_string_port.py b/test_regress/t/t_class_handle_to_string_port.py index d349bf3f4..c7d9b21a5 100755 --- a/test_regress/t/t_class_handle_to_string_port.py +++ b/test_regress/t/t_class_handle_to_string_port.py @@ -10,7 +10,6 @@ import vltest_bootstrap test.scenarios('linter') -test.top_filename = "t/t_class_handle_to_string_port.sv" test.lint(fails=True, expect_filename=test.golden_filename) diff --git a/test_regress/t/t_class_handle_to_string_port.sv b/test_regress/t/t_class_handle_to_string_port.v similarity index 70% rename from test_regress/t/t_class_handle_to_string_port.sv rename to test_regress/t/t_class_handle_to_string_port.v index 47e0c2ac3..39ad26563 100644 --- a/test_regress/t/t_class_handle_to_string_port.sv +++ b/test_regress/t/t_class_handle_to_string_port.v @@ -1,5 +1,8 @@ // DESCRIPTION: Verilator: segfault in V3Width processFTaskRefArgs -// varp->basicp() is nullptr for class-typed pin to string port +// +// This file ONLY is placed under the Creative Commons Public Domain. +// SPDX-FileCopyrightText: 2026 Wilson Snyder +// SPDX-License-Identifier: CC0-1.0 class Base; endclass