mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 08:25:32 +02:00
Check that package scope function calls work with and without arguments as well as empty positional arguments. Signed-off-by: Lars-Peter Clausen <[email protected]>
22 lines
363 B
Verilog
22 lines
363 B
Verilog
// Check that it is possible to call a package scoped function with no
|
|
// arguments.
|
|
|
|
package P;
|
|
function integer T();
|
|
return 1;
|
|
endfunction
|
|
endpackage
|
|
|
|
module test;
|
|
initial begin
|
|
integer x;
|
|
x = P::T();
|
|
if (x === 1) begin
|
|
$display("PASSED");
|
|
end else begin
|
|
$display("FAILED: x = %d, expected 1", x);
|
|
end
|
|
end
|
|
|
|
endmodule
|