1; REQUIRES: x86
2; RUN: llvm-as %s -o %t.o
3; RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
4
5; CHECK: input module has no datalayout
6
7; This bitcode file has no datalayout.
8; Check that we error out producing a reasonable diagnostic.
9target triple = "x86_64-unknown-linux-gnu"
10
11define void @_start() {
12  ret void
13}
14