iverilog/ivtest/ivltests/sv_named_arg_base_fail1.v

22 lines
426 B
Verilog

// Check that an error is reported when trying to bind an argument by nae that
// does not exist
module test;
class B;
function new(integer a, integer b);
$display("FAILED");
endfunction
endclass
class C extends B(.b(2), .c(1)); // This should fail. `c` is not an arugment
// of the base constructor.
endclass
initial begin
C c;
c = new;
end
endmodule