Files
clang-p2996/lld/test/ELF/lto/invalid-bitcode.ll
Davide Italiano 493b683f79 [LTO] Don't crash on a BitcodeFile without DataLayout.
Emit an error instead.

llvm-svn: 266504
2016-04-16 01:33:33 +00:00

13 lines
252 B
LLVM

; 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
}