Test case
[oota-llvm.git] / test / MC / MachO / gen-dwarf-cpp.s
1 // RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
2 // RUN: llvm-dwarfdump -debug-dump=line %t | FileCheck %s
3
4 # 100 "t.s" 1
5 .globl _bar
6 _bar:
7 # 3 "inc/g.s"
8         movl    $0, %eax
9 L1:     leave
10 # 42 "t.s"
11         ret
12
13 // rdar://9275556
14
15 // We check that the source name "t.s" is picked up
16 // CHECK: include_directories[  1] = '{{.*}}/test/MC/MachO'
17 // CHECK: include_directories[  2] = 'inc'
18 // CHECK:                 Dir  Mod Time   File Len   File Name
19 // CHECK:                 ---- ---------- ---------- ---------------------------
20 // CHECK: file_names[  1]    1 0x00000000 0x00000000 gen-dwarf-cpp.s
21 // CHECK: file_names[  2]    0 0x00000000 0x00000000 t.s
22 // CHECK: file_names[  3]    2 0x00000000 0x00000000 g.s
23 // CHECK-NOT: file_names
24
25 // We check that the source line number 100 is picked up before the "movl"
26 // CHECK: Address            Line   Column File   ISA Discriminator Flags
27 // CHECK: ------------------ ------ ------ ------ --- ------------- -------------
28 // CHECK: 0x0000000000000000    102      0      2   0             0  is_stmt