iverilog/ivtest/ivltests/sv_class_new_fail2.v

14 lines
192 B
Verilog

// Check that using the class new operator on a dynamic array variable results
// in an error.
module test;
int i[];
initial begin
i = new;
$display("FAILED");
end
endmodule