xref: /aosp_15_r20/external/llvm/test/Transforms/PruneEH/2008-06-02-Weak.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -prune-eh -S | not grep nounwind
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine weak void @f() {
4*9880d681SAndroid Build Coastguard Workerentry:
5*9880d681SAndroid Build Coastguard Worker        ret void
6*9880d681SAndroid Build Coastguard Worker}
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workerdefine void @g() {
9*9880d681SAndroid Build Coastguard Workerentry:
10*9880d681SAndroid Build Coastguard Worker	call void @f()
11*9880d681SAndroid Build Coastguard Worker	ret void
12*9880d681SAndroid Build Coastguard Worker}
13