[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / llvm / test / CodeGen / ARM / indirect-hidden.ll
blob90b4ffdd1cd1ec362e7b07d2a9cb1e97c49df858
1 ; RUN: llc -mtriple=thumbv7s-apple-ios7.0 -o - %s | FileCheck %s
3 @var = external global i32
4 @var_hidden = external hidden global i32
6 define ptr @get_var() {
7   ret ptr @var
10 define ptr @get_var_hidden() {
11   ret ptr @var_hidden
14 ; CHECK: .section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
16 ; CHECK: .indirect_symbol _var
17 ; CHECK-NEXT: .long 0
19 ; CHECK-NOT: __DATA,__data
21 ; CHECK: .indirect_symbol _var_hidden
22 ; CHECK-NEXT: .long 0