blob: 622f9eb67a29faa7ee22256804f678f8ef5e9f2d [file] [log] [blame]
JF Bastien7b862ec2015-04-20 23:42:22 +00001; Test that bugpoint can reduce the set of functions by replacing them with null.
2;
Brian Gesiakdcf592e2018-12-10 00:56:13 +00003; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -replace-funcs-with-null -bugpoint-crash-decl-funcs -silence-passes -safe-run-llc
JF Bastien7b862ec2015-04-20 23:42:22 +00004; REQUIRES: loadable_module
5
David Blaikie21f77df2015-09-11 03:22:04 +00006@foo2 = alias i32 (), i32 ()* @foo
JF Bastien7b862ec2015-04-20 23:42:22 +00007
8define i32 @foo() { ret i32 1 }
9
10define i32 @test() {
11 call i32 @test()
12 ret i32 %1
13}
14
15define i32 @bar() { ret i32 2 }
16
17@llvm.used = appending global [1 x i8*] [i8* bitcast (i32 ()* @foo to i8*)], section "llvm.metadata"