Kevin Enderby | 4eaf8ef | 2012-11-01 17:31:35 +0000 | [diff] [blame^] | 1 | // RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t |
| 2 | // RUN: llvm-dwarfdump %t | FileCheck %s |
| 3 | |
| 4 | # 100 "t.s" 1 |
| 5 | .globl _bar |
| 6 | _bar: |
| 7 | movl $0, %eax |
| 8 | L1: leave |
| 9 | ret |
| 10 | |
| 11 | // rdar://9275556 |
| 12 | |
| 13 | // We check that the source name "t.s" is picked up |
| 14 | // CHECK: Dir Mod Time File Len File Name |
| 15 | // CHECK: ---- ---------- ---------- --------------------------- |
| 16 | // CHECK: file_names[ 1] 1 0x00000000 0x00000000 gen-dwarf-cpp.s |
| 17 | // CHECK: file_names[ 2] 0 0x00000000 0x00000000 t.s |
| 18 | |
| 19 | // We check that the source line number 100 is picked up before the "movl" |
| 20 | // CHECK: Address Line Column File ISA Flags |
| 21 | // CHECK: ------------------ ------ ------ ------ --- ------------- |
| 22 | // CHECK: 0x0000000000000000 102 0 2 0 is_stmt |