xref: /llvm-project/lld/test/ELF/lto/drop-linkage.ll (revision 7b1d793713cf9ed9ab719f33b332f9c66a1fc5cc)
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
7target triple = "x86_64-unknown-linux-gnu"
8target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9
10define void @foo() {
11  ret void
12}
13
14; CHECK: declare void @foo()
15