mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-07 11:51:38 +02:00
Check that package exports are supported. Also check for various scenarios where package exports should fail. Signed-off-by: Lars-Peter Clausen <[email protected]>
26 lines
375 B
Verilog
26 lines
375 B
Verilog
// Check that it is possible use package wildcard export an identifier and
|
|
// import it from another scope.
|
|
|
|
package P1;
|
|
integer x = 123;
|
|
endpackage
|
|
|
|
package P2;
|
|
import P1::x;
|
|
export P1::*;
|
|
endpackage
|
|
|
|
module test;
|
|
|
|
import P2::x;
|
|
|
|
initial begin
|
|
if (x == 123) begin
|
|
$display("PASSED");
|
|
end else begin
|
|
$display("FAILED");
|
|
end
|
|
end
|
|
|
|
endmodule
|