blob: 9d969d768dff125d297527e3f321040e4dee5e14 [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001; RUN: llvm-as %s -o %t1.bc
Chandler Carruth4177e6f2012-07-02 12:47:22 +00002; RUN: echo "declare void @__eprintf(i8*, i8*, i32, i8*) noreturn define void @foo() { tail call void @__eprintf( i8* undef, i8* undef, i32 4, i8* null ) noreturn nounwind unreachable }" | llvm-as -o %t2.bc
Dan Gohman5efe5662009-09-15 15:38:31 +00003; RUN: llvm-link %t2.bc %t1.bc -S | grep __eprintf
4; RUN: llvm-link %t1.bc %t2.bc -S | grep __eprintf
Chris Lattnerd1ec48c2008-07-14 06:49:45 +00005
6; rdar://6072702
7
8@__eprintf = external global i8* ; <i8**> [#uses=1]
9
10define i8* @test() {
11 %A = load i8** @__eprintf ; <i8*> [#uses=1]
12 ret i8* %A
13}