xref: /aosp_15_r20/external/llvm/test/tools/gold/X86/drop-linkage.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc %s -o %t.s
2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-mc %t.s -o %t.o -filetype=obj
3*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %p/Inputs/drop-linkage.ll -o %t2.o
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
6*9880d681SAndroid Build Coastguard Worker; RUN:    --plugin-opt=emit-llvm \
7*9880d681SAndroid Build Coastguard Worker; RUN:    -shared %t.o %t2.o -o %t3.o
8*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dis %t3.o -o - | FileCheck %s
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerdefine void @foo() {
11*9880d681SAndroid Build Coastguard Worker  ret void
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker; CHECK: declare void @foo()
15