bolt/deps/llvm-18.1.8/llvm/test/Transforms/GlobalOpt/alias-used-section.ll

9 lines
347 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; 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"