xref: /aosp_15_r20/external/llvm/test/tools/gold/X86/unnamed-addr.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %s -o %t.o
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
4*9880d681SAndroid Build Coastguard Worker; RUN:    --plugin-opt=emit-llvm \
5*9880d681SAndroid Build Coastguard Worker; RUN:    -shared %t.o -o %t2.o
6*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dis %t2.o -o - | FileCheck %s
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker@a = internal unnamed_addr constant i8 42
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerdefine i8* @f() {
11*9880d681SAndroid Build Coastguard Worker  ret i8* @a
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker; CHECK: @a = internal unnamed_addr constant i8 42
15