blob: 19fdab4ecd65cc18465516db2123fa596fc708e8 [file] [log] [blame]
Chris Lattnerd9624b02002-11-20 22:30:02 +00001; Test that bugpoint can narrow down the testcase to the important function
Rafael Espindola3cb96262010-08-07 21:48:09 +00002; FIXME: This likely fails on windows
Chris Lattnerd9624b02002-11-20 22:30:02 +00003;
Rafael Espindolaa5c4cc52010-08-08 00:55:59 +00004; RUN: bugpoint -load %llvmlibsdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
Chris Lattnerd9624b02002-11-20 22:30:02 +00005
Reid Spencer660c4f92007-03-19 18:08:42 +00006define i32 @foo() { ret i32 1 }
Chris Lattnerd9624b02002-11-20 22:30:02 +00007
Reid Spencer660c4f92007-03-19 18:08:42 +00008define i32 @test() {
9 call i32 @test()
10 ret i32 %1
Chris Lattnerd9624b02002-11-20 22:30:02 +000011}
12
Reid Spencer660c4f92007-03-19 18:08:42 +000013define i32 @bar() { ret i32 2 }