xref: /aosp_15_r20/external/llvm/test/tools/gold/X86/alias.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %s -o %t.o
2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %p/Inputs/alias-1.ll -o %t2.o
3*9880d681SAndroid Build Coastguard Worker; RUN: %gold -shared -o %t3.o -plugin %llvmshlibdir/LLVMgold.so %t2.o %t.o \
4*9880d681SAndroid Build Coastguard Worker; RUN:  -plugin-opt=emit-llvm
5*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dis < %t3.o -o - | FileCheck %s
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: alias
8*9880d681SAndroid Build Coastguard Worker; CHECK: @a = global i32 42
9*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: @b = global i32 1
10*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: alias
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker@a = weak alias i32, i32* @b
13*9880d681SAndroid Build Coastguard Worker@b = global i32 1
14