197e42f59d5642eccc8cb99db89effd1ef9af1eb
[oota-llvm.git] / test / BugPoint / crash-narrowfunctiontest.ll
1 ; Test that bugpoint can narrow down the testcase to the important function
2 ;
3 ; RUN: llvm-upgrade < %s > %t1.ll
4 ; RUN: bugpoint %t1.ll -bugpoint-crashcalls
5
6 int %foo() { ret int 1 }
7
8 int %test() {
9         call int %test()
10         ret int %0
11 }
12
13 int %bar() { ret int 2 }
14