Fix a Mach-O assembler segfault for a subtraction expression with an undefined symbol.
[oota-llvm.git] / test / MC / MachO / eh_symbol.s
1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-nm - | FileCheck %s
2
3 // test that we don't produce foo.eh symbols in a debug_frame section.
4 // CHECK-NOT: _f.eh
5 // CHECK: T _f
6 // CHECK-NOT: _f.eh
7
8         .globl  _f
9 _f:
10         .cfi_startproc
11         retl
12         .cfi_endproc
13
14         .cfi_sections .debug_frame