1; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s
2
3; This is a regression test making sure we don't crash.
4
5; CHECK:      Relocations [
6; CHECK-NEXT:   Section __text {
7; CHECK-NEXT:     Relocation {
8; CHECK-NEXT:       Offset: 0x0
9; CHECK-NEXT:       PCRel: 0
10; CHECK-NEXT:       Length: 2
11; CHECK-NEXT:       Extern: 1
12; CHECK-NEXT:       Type: ARM64_RELOC_PAGEOFF12 (4)
13; CHECK-NEXT:       Symbol: ltmp1
14; CHECK-NEXT:       Scattered: 0
15; CHECK-NEXT:     }
16; CHECK-NEXT:   }
17; CHECK-NEXT: ]
18
19
20        ldr     x0, [x8, L_bar@PAGEOFF]
21
22        .section        __foo,__bar,regular,no_dead_strip
23L_bar:
24        .quad   0
25