iverilog/ivtest/ivltests/module_nonansi_vec_fail2.v

14 lines
296 B
Verilog

// Check that it is an error to declare a non-ANSI module port without implicit
// packed dimensions if it is later redeclared as a vector typed variable and
// the vector type is not a scalar.
module test(x);
output x;
reg [7:0] x;
initial begin
$display("FAILED");
end
endmodule