xref: /aosp_15_r20/external/llvm/test/Linker/comdat5.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-link %s %p/Inputs/comdat4.ll -S -o - 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
3*9880d681SAndroid Build Coastguard Workertarget triple = "i686-pc-windows-msvc"
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker$foo = comdat samesize
6*9880d681SAndroid Build Coastguard Worker@foo = global i32 42, comdat($foo)
7*9880d681SAndroid Build Coastguard Worker; CHECK: Linking COMDATs named 'foo': SameSize violated!
8