verilator/test_regress/t/t_inst_nansi_bad.v

31 lines
727 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2025 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
typedef int T;
module test ( /*AUTOARG*/
// Outputs
bad1, bad2, bad3, bad4, bad5
);
output [15:0] bad1;
shortint bad1; // <--- Error (type doesn't match above)
output [31:0] bad2;
T bad2; // <--- Error (type doesn't match above due to range)
output [3:0] bad3;
reg [7:0] bad3; // <--- Error (range doesn't match)
output bad4;
reg bad4;
reg bad4; // <--- Error (duplicate)
output bad5;
output bad5; // <--- Error (duplicate)
reg bad5; // <--- Error (duplicate)
endmodule