mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 01:13:47 +02:00
Check that an error is reported, rather than crashing, when trying to do a package scoped function call when the function does not exist in the package or is not a function. Signed-off-by: Lars-Peter Clausen <[email protected]>
17 lines
267 B
Verilog
17 lines
267 B
Verilog
// Check that trying to call a package scoped variable as a function results in
|
|
// an error.
|
|
|
|
package P;
|
|
int x;
|
|
endpackage
|
|
|
|
module test;
|
|
|
|
initial begin
|
|
int y;
|
|
y = P::x(10); // This should fail, x is not a function
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|