blob: c8128369573152ad6eac58731fcbc22eef36ef8e [file] [log] [blame]
Chris Lattnerd9624b02002-11-20 22:30:02 +00001; Test that bugpoint can narrow down the testcase to the important function
2;
NAKAMURA Takumi86c817e2010-11-29 07:58:32 +00003; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
4; REQUIRES: loadable_module
Rafael Espindolad2930d32012-10-26 02:19:02 +00005; XFAIL: lto_on_osx
Chris Lattnerd9624b02002-11-20 22:30:02 +00006
Reid Spencer660c4f92007-03-19 18:08:42 +00007define i32 @foo() { ret i32 1 }
Chris Lattnerd9624b02002-11-20 22:30:02 +00008
Reid Spencer660c4f92007-03-19 18:08:42 +00009define i32 @test() {
10 call i32 @test()
11 ret i32 %1
Chris Lattnerd9624b02002-11-20 22:30:02 +000012}
13
Reid Spencer660c4f92007-03-19 18:08:42 +000014define i32 @bar() { ret i32 2 }