// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s
// Test case for rdar://10743265
// This tests that this expression does not cause a crash and produces two
// relocation entries:
// Relocation 2 entries
// address pcrel length extern type scattered symbolnum/value
// 00000000 False long True SUB False _base
// 00000000 False long True UNSIGND False _start_ap_2
_base = .
+ _start_ap_2 - _base
.word 0
_start_ap_2:
cli
// CHECK: Relocations