Fix a Mach-O assembler segfault for a subtraction expression with an undefined symbol.
[oota-llvm.git] / test / MC / MachO / variable-errors.s
1 // RUN: not llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o %t.o 2> %t.err
2 // RUN: FileCheck < %t.err %s
3
4         .data
5 t0_a:
6 t0_x = t0_a - t0_b
7 // CHECK: unable to evaluate offset to undefined symbol 't0_b'
8         .long   t0_x