diff options
Diffstat (limited to 'test/ELF/lto/duplicated.ll')
-rw-r--r-- | test/ELF/lto/duplicated.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ELF/lto/duplicated.ll b/test/ELF/lto/duplicated.ll new file mode 100644 index 000000000000..6ef6772c5f20 --- /dev/null +++ b/test/ELF/lto/duplicated.ll @@ -0,0 +1,10 @@ +; REQUIRES: x86 +; RUN: llvm-as %s -o %t.o +; RUN: not ld.lld -m elf_x86_64 %t.o %t.o -o %t.so -shared 2>&1 | FileCheck %s +; CHECK: duplicate symbol: f in {{.*}}.o and {{.*}}.o +target triple = "x86_64-unknown-linux-gnu" +target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" + +define void @f() { + ret void +} |