xref: /aosp_15_r20/external/llvm/test/tools/gold/X86/coff.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %s -o %t.o
2*9880d681SAndroid Build Coastguard Worker; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -plugin-opt=emit-llvm \
3*9880d681SAndroid Build Coastguard Worker; RUN:    -shared %t.o -o %t2.o
4*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dis %t2.o -o - | FileCheck %s
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workertarget datalayout = "m:w"
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker; CHECK: define void @f() {
10*9880d681SAndroid Build Coastguard Workerdefine void @f() {
11*9880d681SAndroid Build Coastguard Worker  ret void
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker; CHECK: define internal void @g() {
15*9880d681SAndroid Build Coastguard Workerdefine hidden void @g() {
16*9880d681SAndroid Build Coastguard Worker  ret void
17*9880d681SAndroid Build Coastguard Worker}
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker; CHECK: define internal void @h() local_unnamed_addr {
20*9880d681SAndroid Build Coastguard Workerdefine linkonce_odr void @h() local_unnamed_addr {
21*9880d681SAndroid Build Coastguard Worker  ret void
22*9880d681SAndroid Build Coastguard Worker}
23