llvm-for-llvmta/test/tools/llvm-lto2/X86/nodatalayout.ll

14 lines
292 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llvm-as < %s > %t1.bc
; Reject input modules without a datalayout.
; RUN: not llvm-lto2 run %t1.bc -o %t.o \
; RUN: -r %t1.bc,patatino,px 2>&1 | FileCheck %s
; CHECK: input module has no datalayout
target triple = "x86_64-unknown-linux-gnu"
define void @patatino() {
ret void
}