X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FBugPoint%2Fcrash-narrowfunctiontest.ll;h=d080d9dd4b0cac54d64b4fe42e9853ebddc2c2e2;hb=c25e8d8cea7af83b5538ac0e521366d06c9720d9;hp=197e42f59d5642eccc8cb99db89effd1ef9af1eb;hpb=73e70822ae9dd03f092b1ae56c5fed6d39b7af3c;p=oota-llvm.git diff --git a/test/BugPoint/crash-narrowfunctiontest.ll b/test/BugPoint/crash-narrowfunctiontest.ll index 197e42f59d5..d080d9dd4b0 100644 --- a/test/BugPoint/crash-narrowfunctiontest.ll +++ b/test/BugPoint/crash-narrowfunctiontest.ll @@ -1,14 +1,13 @@ ; 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 -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 }