1 // RUN
: llvm-mc
-triple x86_64-apple-darwin9
%s
-filetype
=obj
-o
- | llvm-readobj
-r | FileCheck
%s
3 // Test case for rdar
://10743265
5 // This tests that this expression does
not cause
a crash
and produces two
7 // Relocation information
(__TEXT
,__text
) 2 entries
8 // address pcrel length extern type scattered symbolnum
/value
9 // 00000000 False long True
SUB False _base
10 // 00000000 False long True UNSIGND False _start_ap_2
14 .long (0x2000) + _start_ap_2 - _base
20 // CHECK
: Relocations
[
21 // CHECK
: Section __text
{
22 // CHECK
: 0x0 0 2 1 X86_64_RELOC_SUBTRACTOR
0 _base
23 // CHECK
: 0x0 0 2 1 X86_64_RELOC_UNSIGNED
0 _start_ap_2