1; RUN: not llvm-link %s %p/Inputs/comdat3.ll -S -o - 2>&1 | FileCheck %s
2
3$foo = comdat noduplicates
4@foo = global i64 43, comdat($foo)
5; CHECK: Linking COMDATs named 'foo': noduplicates has been violated!
6