Update bitcode reader and writer to handle multiple return values.
[oota-llvm.git] / test / BugPoint / crash-narrowfunctiontest.ll
index 197e42f59d5642eccc8cb99db89effd1ef9af1eb..ef0db8d980b61967f99553df6fe0c348b23339f6 100644 (file)
@@ -1,14 +1,12 @@
 ; 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 %s -bugpoint-crashcalls
 
-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 }