1 RUN: llvm-dwarfdump -v %p/../Inputs/dwarfdump-test-loc-list-32bit.elf.o | FileCheck %s 2 Note: the input file was generated from Inputs/dwarfdump-test-loc-list-32bit.elf.cpp 3 4 CHECK: .debug_info 5 CHECK: DW_AT_name{{.*}}"f" 6 CHECK: DW_AT_location{{.*}}([[F_LOC:0x[0-9a-f]*]] 7 CHECK-NEXT: [0x00000000, 0x00000023): DW_OP_reg1 ECX 8 CHECK-NEXT: [0x00000023, 0x0000005d): DW_OP_breg5 EBP-16) 9 CHECK: DW_AT_name{{.*}}"g" 10 CHECK: DW_AT_location{{.*}}([[G_LOC:0x[0-9a-f]*]] 11 CHECK-NEXT: [0x00000000, 0x00000020): DW_OP_reg0 EAX 12 CHECK-NEXT: [0x00000020, 0x0000005d): DW_OP_breg5 EBP-12) 13 14 CHECK: .debug_loc contents: 15 CHECK-NEXT: [[F_LOC]]: 16 this is actually the wrong location due to PR14763, but that doesn't matter for 17 the purposes of testing dwarfdump 18 CHECK-NEXT: [0x00000000, 0x00000023): DW_OP_reg1 ECX 19 CHECK-NEXT: [0x00000023, 0x0000005d): DW_OP_breg5 EBP-16 20 CHECK: [[G_LOC]]: 21 CHECK-NEXT: [0x00000000, 0x00000020): DW_OP_reg0 EAX 22 CHECK-NEXT: [0x00000020, 0x0000005d): DW_OP_breg5 EBP-12 23