diff options
Diffstat (limited to 'test/BugPoint/crash-narrowfunctiontest.ll')
-rw-r--r-- | test/BugPoint/crash-narrowfunctiontest.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/BugPoint/crash-narrowfunctiontest.ll b/test/BugPoint/crash-narrowfunctiontest.ll new file mode 100644 index 0000000..6ad09d2 --- /dev/null +++ b/test/BugPoint/crash-narrowfunctiontest.ll @@ -0,0 +1,12 @@ +; Test that bugpoint can narrow down the testcase to the important function +; +; RUN: bugpoint %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null + +define i32 @foo() { ret i32 1 } + +define i32 @test() { + call i32 @test() + ret i32 %1 +} + +define i32 @bar() { ret i32 2 } |