xref: /aosp_15_r20/external/llvm/test/Transforms/GlobalOpt/alias-used-section.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt -S -globalopt < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker@_Z17in_custom_section = internal global i8 42, section "CUSTOM"
4*9880d681SAndroid Build Coastguard Worker@in_custom_section = internal dllexport alias i8, i8* @_Z17in_custom_section
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker; CHECK: @in_custom_section = internal dllexport global i8 42, section "CUSTOM"
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker@llvm.used = appending global [1 x i8*] [i8* @in_custom_section], section "llvm.metadata"
9