aboutsummaryrefslogtreecommitdiffstats
path: root/tests/verilog/conflict_interface_port.ys
diff options
context:
space:
mode:
Diffstat (limited to 'tests/verilog/conflict_interface_port.ys')
-rw-r--r--tests/verilog/conflict_interface_port.ys17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/verilog/conflict_interface_port.ys b/tests/verilog/conflict_interface_port.ys
new file mode 100644
index 000000000..b97ec029e
--- /dev/null
+++ b/tests/verilog/conflict_interface_port.ys
@@ -0,0 +1,17 @@
+logger -expect error "Cannot add interface port `\\i' because a signal with the same name was already created" 1
+read_verilog -sv <<EOT
+interface intf;
+ logic x;
+ assign x = 1;
+ modport m(input x);
+endinterface
+module mod(intf.m i);
+ wire x;
+ assign x = i.x;
+ wire i;
+endmodule
+module top;
+ intf i();
+ mod m(i);
+endmodule
+EOT