Fix a Mach-O assembler segfault for a subtraction expression with an undefined symbol.
[oota-llvm.git] / test / MC / MachO / bad-darwin-x86_64-diff-relocs.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 .quad _foo - _bar
5 // CHECK-ERROR: unsupported relocation with subtraction expression