33 lines · plain
1RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/baseaddr/loc1.x86_64 -f -o - | llvm-dwarfdump --debug-info - | FileCheck %s2 3RUN: dsymutil --linker parallel -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/baseaddr/loc1.x86_64 -f -o - | llvm-dwarfdump --debug-info - | FileCheck %s4 5The test was compiled from a single source:6$ cat loc1.cpp7int f1(int i, int j) {8 int x = 5;9 int y = 3;10 int r = i + j;11 int undef;12 x = undef;13 y = 4;14 return r;15}16__attribute__((nodebug)) void f2() {17}18int main() {19 return 0;20}21 22CHECK: DW_TAG_compile_unit23CHECK: DW_TAG_variable24CHECK: DW_AT_location25CHECK: [0x0000000100000f94, 0x0000000100000f97): DW_OP_consts +3, DW_OP_stack_value26CHECK: [0x0000000100000f97, 0x0000000100000f99): DW_OP_consts +4, DW_OP_stack_value27CHECK: DW_TAG_variable28CHECK: DW_AT_location29CHECK: [0x0000000100000f94, 0x0000000100000f97): DW_OP_consts +5, DW_OP_stack_value30CHECK: DW_TAG_variable31CHECK: DW_AT_location32CHECK: [0x0000000100000f97, 0x0000000100000f99): DW_OP_reg0 RAX33