xref: /llvm-project/llvm/test/BugPoint/crash-narrowfunctiontest.ll (revision 82d3c0759fa0f0d3789f9b88d5f5e8cc6e97126f)
1; Test that bugpoint can narrow down the testcase to the important function
2;
3; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
4; REQUIRES: plugins
5
6define i32 @foo() { ret i32 1 }
7
8define i32 @test() {
9	call i32 @test()
10	ret i32 %1
11}
12
13define i32 @bar() { ret i32 2 }
14