blob: 18a31eb45d36d7e41de0f046b7dc4fe621f8f18e [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
Rafael Espindola9778a8a2010-08-09 15:14:06 +00005; XFAIL: mingw
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 }