iverilog/ivtest/ivltests/sv_ps_function_fail1.v

16 lines
267 B
Verilog

// Check that an error is reported when trying to call a package scoped function
// that does not exist.
package P;
endpackage
module test;
initial begin
int y;
y = P::f(10); // This should fail, f does not exist
$display("FAILED");
end
endmodule