1; REQUIRES: x86
2; RUN: llvm-as %s -o %t.o
3; RUN: not %lld %t.o -o /dev/null 2>&1 | FileCheck %s
4
5; CHECK: error: 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-apple-macosx10.15.0"
10
11define void @_start() {
12  ret void
13}
14