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