Fix a Mach-O assembler segfault for a subtraction expression with an undefined symbol.
[oota-llvm.git] / test / MC / MachO / bad-darwin-x86_64-reloc-expr1.s
1 // RUN: not llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - 2> %t.err > %t
2 // RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s
3
4 _Z:
5 .long (_Z+4)-_b
6 // CHECK-ERROR: error: unsupported relocation with subtraction expression, symbol '_b' can not be undefined in a subtraction expression