blob: d080d9dd4b0cac54d64b4fe42e9853ebddc2c2e2 [file] [log] [blame]
Chris Lattner185972c2002-11-20 22:30:02 +00001; Test that bugpoint can narrow down the testcase to the important function
2;
NAKAMURA Takumi6ea8a942010-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
Chris Lattner185972c2002-11-20 22:30:02 +00005
Reid Spencer104b4702007-03-19 18:08:42 +00006define i32 @foo() { ret i32 1 }
Chris Lattner185972c2002-11-20 22:30:02 +00007
Reid Spencer104b4702007-03-19 18:08:42 +00008define i32 @test() {
9 call i32 @test()
10 ret i32 %1
Chris Lattner185972c2002-11-20 22:30:02 +000011}
12
Reid Spencer104b4702007-03-19 18:08:42 +000013define i32 @bar() { ret i32 2 }