iverilog/ivtest/ivltests/sv_named_arg_chained_fail1.v

25 lines
473 B
Coq
Raw Normal View History

// 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;
function new;
super.new(.b(2), .c(1)); // This should fail. `c` is not an arugment of
// the base constructor.
endfunction
endclass
initial begin
C c;
c = new;
end
endmodule