Skip to content

Commit 81cc8a0

Browse files
authored
Merge pull request #1498 from diffblue/typedef_name_collision3
Verilog: test for name collision between typedef and module instance
2 parents 4fbd8a5 + 3f18409 commit 81cc8a0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
typedef_name_collision3.sv
3+
4+
^file .* line 11: duplicate definition of identifier `some_identifier' in module `main'$
5+
^EXIT=2$
6+
^SIGNAL=0$
7+
--
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module sub;
2+
3+
4+
endmodule
5+
6+
module main;
7+
8+
wire some_identifier;
9+
10+
// name collision
11+
sub some_identifier();
12+
13+
endmodule

0 commit comments

Comments
 (0)