xref: /llvm-project/llvm/test/MC/MachO/gen-dwarf-macro-cpp.s (revision 0a16ba856bea63e3c1e09408b19b06b6aad00d1d)
1// RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
2// RUN: llvm-dwarfdump -debug-line %t | FileCheck %s
3
4# 1 "foo.S" 2
5.macro switcher
6        ljmp *0x38(%ecx)
7.endmacro
8        switcher NaClSwitchNoSSE, 0
9
10// PR14264 was a crash in the code caused by the .macro not handled correctly
11// rdar://12637628
12
13// We check that the source name "foo.S" is picked up
14// CHECK: file_names[  1]:
15// CHECK-NEXT: name: "foo.S"
16// CHECK-NEXT: dir_index: 0
17