iverilog/ivtest/ivltests/sv_class_constructor1.v

15 lines
221 B
Verilog

// Check that a class constructor declaration without parenthesis after the
// `new` is supported.
module test;
class C;
function new;
$display("PASSED");
endfunction
endclass
C c = new;
endmodule