blob: 348cd89bbc4c7bb540914bc07c48b7a4eecb15ad [file] [log] [blame]
Chris Lattner68910502011-12-20 00:03:52 +00001; 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
10define i32 @bug_a(%bug_type* %fp) nounwind uwtable {
11entry:
12 %d_stream = getelementptr inbounds %bug_type* %fp, i64 0, i32 0
13 ret i32 0
14}
15
16define i32 @bug_b(%bar* %a) nounwind uwtable {
17entry:
18 ret i32 0
19}