1 ; RUN: llvm-as < %s > %t1.bc
3 ; Reject input modules without a datalayout.
4 ; RUN: not llvm-lto2 run %t1.bc -o %t.o \
5 ; RUN: -r %t1.bc,patatino,px 2>&1 | FileCheck %s
7 ; CHECK: input module has no datalayout
9 target triple = "x86_64-unknown-linux-gnu"
11 define void @patatino() {