diff options
Diffstat (limited to 'test/ELF/lto/invalid-bitcode.ll')
-rw-r--r-- | test/ELF/lto/invalid-bitcode.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ELF/lto/invalid-bitcode.ll b/test/ELF/lto/invalid-bitcode.ll new file mode 100644 index 000000000000..eceffb10d8ad --- /dev/null +++ b/test/ELF/lto/invalid-bitcode.ll @@ -0,0 +1,12 @@ +; REQUIRES: x86 +; RUN: llvm-as %s -o %t.o +; RUN: not ld.lld -m elf_x86_64 %t.o 2>&1 | FileCheck %s + +; CHECK: invalid bitcode file: + +; This bitcode file has no datalayout. +target triple = "x86_64-unknown-linux-gnu" + +define void @_start() { + ret void +} |