1 ; RUN: rm -rf %t && split-file %s %t
2 ; RUN: not llvm-link %t/diff-size.ll %t/diff-size-aux.ll -S -o - 2>&1 | FileCheck %s --check-prefix=DIFF_SIZE
5 ; DIFF_SIZE: Linking COMDATs named 'foo': SameSize violated!
6 target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
7 target triple = "i686-pc-windows-msvc"
10 @foo = global i32 42, comdat($foo)
13 target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
14 target triple = "i686-pc-windows-msvc"
16 $foo = comdat samesize
17 @foo = global i64 42, comdat($foo)