[WinEH] CatchHandler which don't have catch objects in StackColoring
[oota-llvm.git] / test / Linker / link-global-to-func.ll
index b492e52d8059c909cd0a614b612053a322f49e9b..f7adde94c139977649d5f3149bf8a6ee20b6c2a1 100644 (file)
@@ -1,13 +1,14 @@
-; RUN: llvm-as %s -o %t1.bc -f
-; 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 -f
-; RUN: llvm-link %t2.bc %t1.bc -o - | llvm-dis | grep __eprintf
-; RN: llvm-link %t1.bc %t2.bc -o - | llvm-dis | grep __eprintf
+; RUN: llvm-as %s -o %t1.bc
+; 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
+; RUN: llvm-link %t2.bc %t1.bc -S | FileCheck %s
+; RUN: llvm-link %t1.bc %t2.bc -S | FileCheck %s
+; CHECK: __eprintf
 
 ; rdar://6072702
 
 @__eprintf = external global i8*               ; <i8**> [#uses=1]
 
 define i8* @test() {
-       %A = load i8** @__eprintf               ; <i8*> [#uses=1]
+       %A = load i8*, i8** @__eprintf          ; <i8*> [#uses=1]
        ret i8* %A
 }