]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/lto/drop-linkage.ll
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / lto / drop-linkage.ll
1 ; REQUIRES: x86
2 ; RUN: llc %s -o %t.o -filetype=obj
3 ; RUN: llvm-as %p/Inputs/drop-linkage.ll -o %t2.o
4 ; RUN: ld.lld %t.o %t2.o -o %t.so -save-temps -shared
5 ; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
6
7 target triple = "x86_64-unknown-linux-gnu"
8 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
9
10 define void @foo() {
11   ret void
12 }
13
14 ; CHECK: declare void @foo()