verilator/test_regress/t/t_var_ref_bad1.v
2020-03-21 11:24:24 -04:00

20 lines
449 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2018 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
// Make sure type errors aren't suppressable
// verilator lint_off WIDTH
module t(/*AUTOARG*/);
bit bad_parent;
sub sub
(.bad_sub_ref(bad_parent)); // Type mismatch
endmodule
module sub(ref real bad_sub_ref);
endmodule