]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/BugPoint/crash-narrowfunctiontest.ll
Vendor import of llvm release_32 branch r168974 (effectively, 3.2 RC2):
[FreeBSD/FreeBSD.git] / test / BugPoint / crash-narrowfunctiontest.ll
1 ; Test that bugpoint can narrow down the testcase to the important function
2 ;
3 ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
4 ; REQUIRES: loadable_module
5 ; XFAIL: lto_on_osx
6
7 define i32 @foo() { ret i32 1 }
8
9 define i32 @test() {
10         call i32 @test()
11         ret i32 %1
12 }
13
14 define i32 @bar() { ret i32 2 }