1 ; RUN: not llvm-link -S %s %p/Inputs/comdat13.ll -o %t.ll 2>&1 | FileCheck %s
3 ; In Inputs/comdat13.ll a function not in the $foo comdat (zed) references an
4 ; internal function in the comdat $foo.
5 ; We might want to have the verifier reject that, but for now we at least check
6 ; that the linker produces an error.
7 ; This is the IR equivalent of the "relocation refers to discarded section" in
10 ; CHECK: Declaration points to discarded value
13 @foo = global i8 0, comdat