Link symbols with different visibilities according to the rules in the
[oota-llvm.git] / test / Linker / multiple-merged-structs.ll
1 ; RUN: echo {%bug_type = type opaque \
2 ; RUN:     declare i32 @bug_a(%bug_type*) \
3 ; RUN:     declare i32 @bug_b(%bug_type*) } > %t.ll
4 ; RUN: llvm-link %t.ll %s
5 ; PR11464
6
7 %bug_type = type { %bug_type* }
8 %bar = type { i32 }
9
10 define i32 @bug_a(%bug_type* %fp) nounwind uwtable {
11 entry:
12   %d_stream = getelementptr inbounds %bug_type* %fp, i64 0, i32 0
13   ret i32 0
14 }
15
16 define i32 @bug_b(%bar* %a) nounwind uwtable {
17 entry:
18   ret i32 0
19 }