; RUN: llc -mtriple=powerpc-apple-darwin < %s | FileCheck %s

@a = external hidden global i32
@b = external global i32

define i32* @get_a() {
  ret i32* @a
}

define i32* @get_b() {
  ret i32* @b
}

; CHECK:      .section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
; CHECK-NEXT: .p2align  2
; CHECK-NEXT: L_b$non_lazy_ptr:
; CHECK-NEXT:   .indirect_symbol        _b
; CHECK-NEXT:   .long   0

; CHECK:      .section        __DATA,__data
; CHECK-NEXT: .p2align        2
; CHECK-NEXT: L_a$non_lazy_ptr:
; CHECK-NEXT:   .long   _a

Add a test showing how hidden stubs are handled on ppc.
Add a test showing how hidden stubs are handled on ppc.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@269766 91177308-0d34-0410-b5e6-96231b3b80d8
