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