aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/GlobalOpt/alias-used-section.ll
blob: ac7263d98ca1f6d87bade3e8e580953c5ec50457 (plain)
1
2
3
4
5
6
7
8
; RUN: opt -S -passes=globalopt < %s | FileCheck %s

@_Z17in_custom_section = internal global i8 42, section "CUSTOM"
@in_custom_section = internal alias i8, ptr @_Z17in_custom_section

; CHECK: @in_custom_section = internal global i8 42, section "CUSTOM"

@llvm.used = appending global [1 x ptr] [ptr @in_custom_section], section "llvm.metadata"