| Kevin Enderby | 27121c1 | 2012-11-05 21:55:41 +0000 | [diff] [blame] | 1 | // RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t |
| Adrian Prantl | 7bc1b28 | 2017-09-11 22:59:45 +0000 | [diff] [blame] | 2 | // RUN: llvm-dwarfdump -debug-line %t | FileCheck %s |
| Kevin Enderby | 27121c1 | 2012-11-05 21:55:41 +0000 | [diff] [blame] | 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 |
| Scott Linder | 16c7bda | 2018-02-23 23:01:06 +0000 | [diff] [blame] | 14 | // 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 |