blob: de40bbdd65690e78bc59a2c05f38271bd3d409bd [file] [log] [blame]
Kevin Enderby27121c12012-11-05 21:55:41 +00001// RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
Adrian Prantl7bc1b282017-09-11 22:59:45 +00002// RUN: llvm-dwarfdump -debug-line %t | FileCheck %s
Kevin Enderby27121c12012-11-05 21:55:41 +00003
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
Scott Linder16c7bda2018-02-23 23:01:06 +000014// CHECK: file_names[ 1]:
15// CHECK-NEXT: name: "gen-dwarf-macro-cpp.s"
16// CHECK-NEXT: dir_index: 1
17// CHECK: file_names[ 2]:
18// CHECK-NEXT: name: "foo.S"
19// CHECK-NEXT: dir_index: 0