Tests: Repair new test (#8538 repair)

This commit is contained in:
Wilson Snyder
2026-09-29 17:45:58 -04:00
parent 39796ca954
commit 9637c62dfe
4 changed files with 11 additions and 5 deletions
+4
View File
@@ -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();
@@ -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
@@ -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)
@@ -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