c3b8e1c4f9fa4d7bbfb8cb62312318953dff5234
[oota-llvm.git] / test / DebugInfo / dwarfdump-dwp.test
1 RUN: llvm-dwarfdump %p/Inputs/dwarfdump-dwp.x86_64.o | FileCheck %s
2
3 ; Testing the following simple dwp file:
4 ; a.cpp:
5 ;   struct foo { };
6 ;   foo a;
7 ; b.cpp:
8 ;   struct foo { };
9 ;   foo b;
10
11 ; CHECK: .debug_cu_index contents:
12 ; CHECK-NEXT: Index header:
13 ; CHECK-NEXT: version: 2
14 ; CHECK-NEXT: columns: 4
15 ; CHECK-NEXT:   units: 2
16 ; CHECK-NEXT: buckets: 16
17
18 ; CHECK: .debug_tu_index contents:
19 ; CHECK-NEXT: Index header:
20 ; CHECK-NEXT: version: 2
21 ; CHECK-NEXT: columns: 4
22 ; CHECK-NEXT:   units: 1
23 ; CHECK-NEXT: buckets: 16
24
25 ; TODO: dump the index contents
26 ; TODO: use the index section offset info to correctly dump debug_info