mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 00:19:42 +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]>
18 lines
279 B
Verilog
18 lines
279 B
Verilog
// Check that an error is reported when trying to call a package scoped task as
|
|
// a function.
|
|
|
|
package P;
|
|
task t(int x);
|
|
endtask
|
|
endpackage
|
|
|
|
module test;
|
|
|
|
initial begin
|
|
int y;
|
|
y = P::t(10); // This should fail, t is a task
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|