2021-09-01 08:10:30 +02:00
|
|
|
; RUN: split-file %s %t.dir
|
|
|
|
; RUN: not llvm-link %t.dir/global.ll %t.dir/global.ll -S -o - 2>&1 | FileCheck %s
|
|
|
|
; RUN: llvm-link %t.dir/global.ll %t.dir/weak.ll -S -o - 2>&1
|
|
|
|
; RUN: llvm-link %t.dir/weak.ll %t.dir/global.ll -S -o - 2>&1
|
|
|
|
; RUN: llvm-link %t.dir/weak.ll %t.dir/weak.ll -S -o - 2>&1
|
2014-06-27 20:19:56 +02:00
|
|
|
|
2021-09-01 08:10:30 +02:00
|
|
|
;--- global.ll
|
2021-07-20 21:47:10 +02:00
|
|
|
$foo = comdat nodeduplicate
|
2015-01-06 23:55:16 +01:00
|
|
|
@foo = global i64 43, comdat($foo)
|
2021-07-20 21:47:10 +02:00
|
|
|
; CHECK: Linking COMDATs named 'foo': nodeduplicate has been violated!
|
2021-09-01 08:10:30 +02:00
|
|
|
|
|
|
|
;--- weak.ll
|
|
|
|
$foo = comdat nodeduplicate
|
|
|
|
@foo = weak global i64 43, comdat($foo)
|