Add a test case for r176066.
[oota-llvm.git] / test / BugPoint / crash-narrowfunctiontest.ll
index 197e42f59d5642eccc8cb99db89effd1ef9af1eb..c8128369573152ad6eac58731fcbc22eef36ef8e 100644 (file)
@@ -1,14 +1,14 @@
 ; Test that bugpoint can narrow down the testcase to the important function
 ;
-; RUN: llvm-upgrade < %s > %t1.ll
-; RUN: bugpoint %t1.ll -bugpoint-crashcalls
+; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
+; REQUIRES: loadable_module
+; XFAIL: lto_on_osx
 
-int %foo() { ret int 1 }
+define i32 @foo() { ret i32 1 }
 
-int %test() {
-       call int %test()
-       ret int %0
+define i32 @test() {
+       call i32 @test()
+       ret i32 %1
 }
 
-int %bar() { ret int 2 }
-
+define i32 @bar() { ret i32 2 }