iverilog/ivtest/ivltests/sv_named_arg_base_fail5.v

21 lines
387 B
Verilog

// Check that an error is reported when binding an empty value to an argument by
// name and the argument does not have a default value.
module test;
class B;
function new(integer a);
$display("FAILED");
endfunction
endclass
class C extends B(.a()); // This should fail. `a` has no default value.
endclass
initial begin
C c;
c = new;
end
endmodule