blob: f38be6dc8f219deb54ad3ea8f69a720acc00d92b [file] [log] [blame]
David Blaikie18e73502013-06-19 21:37:13 +00001RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test-loc-list-32bit.elf.o | FileCheck %s
2Note: the input file was generated from Inputs/dwarfdump-test-loc-list-32bit.elf.cpp
3
4CHECK: .debug_info
5CHECK: DW_AT_name{{.*}}"f"
6CHECK: DW_AT_location{{.*}}([[F_LOC:0x[0-9a-f]*]])
7CHECK: DW_AT_name{{.*}}"g"
8CHECK: DW_AT_location{{.*}}([[G_LOC:0x[0-9a-f]*]])
9CHECK: .debug_loc contents:
10CHECK-NEXT: [[F_LOC]]: Begining address offset: 0x0000000000000000
11CHECK-NEXT: Ending address offset: 0x0000000000000023
12this is actually the wrong location due to PR14763, but that doesn't matter for
13the purposes of testing dwarfdump
14CHECK-NEXT: Location description: 51
15CHECK-NEXT: {{^$}}
16CHECK-NEXT: Begining address offset: 0x0000000000000023
17CHECK-NEXT: Ending address offset: 0x000000000000005d
18CHECK-NEXT: Location description: 75 70
19CHECK-NEXT: {{^$}}
20CHECK-NEXT: [[G_LOC]]: Begining address offset: 0x0000000000000000
21CHECK-NEXT: Ending address offset: 0x0000000000000020
22CHECK-NEXT: Location description: 50
23CHECK-NEXT: {{^$}}
24CHECK-NEXT: Begining address offset: 0x0000000000000020
25CHECK-NEXT: Ending address offset: 0x000000000000005d
26CHECK-NEXT: Location description: 75 74