Tests: Fix bad-syntax crashes, bug1577.

This commit is contained in:
Wilson Snyder 2019-10-31 19:34:13 -04:00
parent bcb766b4ce
commit 1224c69126
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,10 @@
%Error: t/t_fuzz_always_bad.v:9: Can't find definition of 'a' in dotted variable: 'c.a'
always @ c.a c:h;
^
%Error: t/t_fuzz_always_bad.v:9: Can't find definition of task/function: 'h'
always @ c.a c:h;
^
%Error: t/t_fuzz_always_bad.v:9: Unsupported: Complex statement in sensitivity list
always @ c.a c:h;
^
%Error: Exiting due to

View File

@ -0,0 +1,18 @@
#!/usr/bin/perl
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
#
# Copyright 2003 by Wilson Snyder. This program is free software; you can
# redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License
# Version 2.0.
scenarios(linter => 1);
lint(
fails => 1,
expect_filename => $Self->{golden_filename},
);
ok(1);
1;

View File

@ -0,0 +1,10 @@
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2019 by Wilson Snyder.
//bug1577
module t;
always @ c.a c:h;
endmodule