blob: ef78eb2b0232fb30531f6ac86807d10711e71917 [file] [log] [blame]
Chris Lattner185972c2002-11-20 22:30:02 +00001; Test that bugpoint can narrow down the testcase to the important function
2;
Vedant Kumar67fdb6b2018-02-09 05:09:48 +00003; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls --opt-command opt -silence-passes > /dev/null
NAKAMURA Takumi6ea8a942010-11-29 07:58:32 +00004; 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 }