19b50678877b1d8a9fea74511ad170810a8ddb31
[oota-llvm.git] / test / MC / MachO / AArch64 / cfstring.s
1 ; RUN: llvm-mc -triple arm64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --expand-relocs | FileCheck %s
2
3 ; Test that we produce an external relocation. There is no apparent need for it, but
4 ; ld64 (241.9) produces a corrupt output if we don't.
5
6 // CHECK:      Relocations [
7 // CHECK-NEXT:   Section __data {
8 // CHECK-NEXT:     Relocation {
9 // CHECK-NEXT:       Offset: 0x0
10 // CHECK-NEXT:       PCRel: 0
11 // CHECK-NEXT:       Length: 3
12 // CHECK-NEXT:       Extern: 1
13 // CHECK-NEXT:       Type: ARM64_RELOC_UNSIGNED (0)
14 // CHECK-NEXT:       Symbol: Lfoo
15 // CHECK-NEXT:       Scattered: 0
16 // CHECK-NEXT:     }
17 // CHECK-NEXT:   }
18 // CHECK-NEXT: ]
19
20         .section        __DATA,__cfstring
21 Lfoo:
22
23         .section        __DATA,__data
24         .quad   Lfoo