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