]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/lto/bitcode-nodatalayout.ll
Vendor import of lld release_39 branch r288513:
[FreeBSD/FreeBSD.git] / test / ELF / lto / bitcode-nodatalayout.ll
1 ; REQUIRES: x86
2 ; RUN: llvm-as %s -o %t.o
3 ; RUN: not ld.lld -m elf_x86_64 %t.o -o %t 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.
9 target triple = "x86_64-unknown-linux-gnu"
10
11 define void @_start() {
12   ret void
13 }