xref: /aosp_15_r20/external/llvm/test/Linker/Inputs/comdat.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
2*9880d681SAndroid Build Coastguard Workertarget triple = "i686-pc-windows-msvc"
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker$foo = comdat largest
5*9880d681SAndroid Build Coastguard Worker@foo = global i64 43, comdat($foo)
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine i32 @bar() comdat($foo) {
8*9880d681SAndroid Build Coastguard Worker  ret i32 43
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker$qux = comdat largest
12*9880d681SAndroid Build Coastguard Worker@qux = global i32 13, comdat($qux)
13*9880d681SAndroid Build Coastguard Worker@in_unselected_group = global i32 13, comdat($qux)
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Workerdefine i32 @baz() comdat($qux) {
16*9880d681SAndroid Build Coastguard Worker  ret i32 13
17*9880d681SAndroid Build Coastguard Worker}
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker$any = comdat any
20*9880d681SAndroid Build Coastguard Worker@any = global i64 7, comdat($any)
21