diff --git a/test_regress/t/t_flag_noop_bad.out b/test_regress/t/t_flag_noop_bad.out new file mode 100644 index 000000000..3f89e26a3 --- /dev/null +++ b/test_regress/t/t_flag_noop_bad.out @@ -0,0 +1 @@ +%Error: verilator: Need --cc, --sc, --cdc, --dpi-hdr-only, --lint-only, --xml-only or --E option diff --git a/test_regress/t/t_flag_noop_bad.pl b/test_regress/t/t_flag_noop_bad.pl new file mode 100755 index 000000000..f6fe2bbb8 --- /dev/null +++ b/test_regress/t/t_flag_noop_bad.pl @@ -0,0 +1,22 @@ +#!/usr/bin/env 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. +# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0 + +scenarios(vlt => 1); + +run(cmd => ["../bin/verilator", + "t_flag_noop_bad.v"], + fails => 1, + logfile => "$Self->{obj_dir}/sim.log", + expect_filename => $Self->{golden_filename}, + verilator_run => 1, + ); + +ok(1); +1; diff --git a/test_regress/t/t_flag_noop_bad.v b/test_regress/t/t_flag_noop_bad.v new file mode 100644 index 000000000..112d2a878 --- /dev/null +++ b/test_regress/t/t_flag_noop_bad.v @@ -0,0 +1,17 @@ +// DESCRIPTION: Verilator: Verilog Test module +// +// This file ONLY is placed under the Creative Commons Public Domain, for +// any use, without warranty, 2019 by Wilson Snyder. +// SPDX-License-Identifier: CC0-1.0 + +module t (/*AUTOARG*/); + + int u1; + int u1; + int u1; + int u1; + int u1; + int u1; + int u1; + +endmodule