25 lines
473 B
Verilog
25 lines
473 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;
|
|
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
|