diff options
Diffstat (limited to 'llvm/test/Linker/comdat13.ll')
-rw-r--r-- | llvm/test/Linker/comdat13.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Linker/comdat13.ll b/llvm/test/Linker/comdat13.ll new file mode 100644 index 00000000000..a8e51f04ae1 --- /dev/null +++ b/llvm/test/Linker/comdat13.ll @@ -0,0 +1,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 |