xref: /aosp_15_r20/external/llvm/test/Linker/comdat11.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-link -S %s %p/Inputs/comdat11.ll -o - | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker$foo = comdat any
4*9880d681SAndroid Build Coastguard Worker@foo = global i8 0, comdat
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker; CHECK: @foo = global i8 0, comdat
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker; CHECK: define void @zed() {
9*9880d681SAndroid Build Coastguard Worker; CHECK:   call void @bar()
10*9880d681SAndroid Build Coastguard Worker; CHECK:   ret void
11*9880d681SAndroid Build Coastguard Worker; CHECK: }
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker; CHECK: declare void @bar()
14