1target triple = "wasm32-unknown-unknown"
2
3; Will collide: local (internal linkage) with global (external) linkage
4@colliding_global1 = internal default global i32 1, align 4
5; Will collide: global with local
6@colliding_global2 = default global i32 1, align 4
7; Will collide: local with local
8@colliding_global3 = internal default global i32 1, align 4
9
10; Will collide: local with global
11define internal i32 @colliding_func1() {
12entry:
13  ret i32 2
14}
15; Will collide: global with local
16define i32 @colliding_func2() {
17entry:
18  ret i32 2
19}
20; Will collide: local with local
21define internal i32 @colliding_func3() {
22entry:
23  ret i32 2
24}
25
26
27define i32* @get_global1A() {
28entry:
29  ret i32* @colliding_global1
30}
31define i32* @get_global2A() {
32entry:
33  ret i32* @colliding_global2
34}
35define i32* @get_global3A() {
36entry:
37  ret i32* @colliding_global3
38}
39
40define i32 ()* @get_func1A() {
41entry:
42  ret i32 ()* @colliding_func1
43}
44define i32 ()* @get_func2A() {
45entry:
46  ret i32 ()* @colliding_func2
47}
48define i32 ()* @get_func3A() {
49entry:
50  ret i32 ()* @colliding_func3
51}
52