mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
8ea9566fee
rdar://problem/16660411 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207517 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
445 B
LLVM
22 lines
445 B
LLVM
; RUN: llc -mtriple=thumbv7s-apple-ios7.0 -o - %s | FileCheck %s
|
|
|
|
@var = external global i32
|
|
@var_hidden = external hidden global i32
|
|
|
|
define i32* @get_var() {
|
|
ret i32* @var
|
|
}
|
|
|
|
define i32* @get_var_hidden() {
|
|
ret i32* @var_hidden
|
|
}
|
|
|
|
; CHECK: .section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
|
|
|
|
; CHECK: .indirect_symbol _var
|
|
; CHECK-NEXT: .long 0
|
|
|
|
; CHECK-NOT: __DATA,__data
|
|
|
|
; CHECK: .indirect_symbol _var_hidden
|
|
; CHECK-NEXT: .long 0 |