xref: /aosp_15_r20/external/llvm/test/BugPoint/crash-narrowfunctiontest.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; Test that bugpoint can narrow down the testcase to the important function
2*9880d681SAndroid Build Coastguard Worker;
3*9880d681SAndroid Build Coastguard Worker; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
4*9880d681SAndroid Build Coastguard Worker; REQUIRES: loadable_module
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine i32 @foo() { ret i32 1 }
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workerdefine i32 @test() {
9*9880d681SAndroid Build Coastguard Worker	call i32 @test()
10*9880d681SAndroid Build Coastguard Worker	ret i32 %1
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Workerdefine i32 @bar() { ret i32 2 }
14