xref: /aosp_15_r20/external/llvm/test/Other/opt-twice.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; The pass here doesn't matter (we use deadargelim), but test
2*9880d681SAndroid Build Coastguard Worker; that the -run-twice options exists, generates output, and
3*9880d681SAndroid Build Coastguard Worker; doesn't crash
4*9880d681SAndroid Build Coastguard Worker; RUN: opt -run-twice -deadargelim -S < %s | FileCheck %s
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker; CHECK: define internal void @test
7*9880d681SAndroid Build Coastguard Workerdefine internal {} @test() {
8*9880d681SAndroid Build Coastguard Worker  ret {} undef
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdefine void @caller() {
12*9880d681SAndroid Build Coastguard Worker  call {} @test()
13*9880d681SAndroid Build Coastguard Worker  ret void
14*9880d681SAndroid Build Coastguard Worker}
15