xref: /aosp_15_r20/external/llvm/test/Transforms/Inline/pr22285.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -inline -S | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker$f1 = comdat any
4*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: $f1 = comdat any
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine void @f2() {
7*9880d681SAndroid Build Coastguard Worker  call void @f1()
8*9880d681SAndroid Build Coastguard Worker  ret void
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: define void @f2
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerdefine linkonce_odr void @f1() comdat {
13*9880d681SAndroid Build Coastguard Worker  ret void
14*9880d681SAndroid Build Coastguard Worker}
15*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: define linkonce_odr void @f1() comdat
16