1RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/baseaddr/loc1.x86_64 -f -o - | llvm-dwarfdump -debug-loc - | FileCheck %s
2
3The test was compiled from a single source:
4$ cat loc1.cpp
5int f1(int i, int j) {
6  int x = 5;
7  int y = 3;
8  int r = i + j;
9  int undef;
10  x = undef;
11  y = 4;
12  return r;
13}
14__attribute__((nodebug)) void f2() {
15}
16int main() {
17  return 0;
18}
19
20CHECK: .debug_loc contents:
21CHECK: [0x0000000100000f94,  0x0000000100000f97): DW_OP_consts +3, DW_OP_stack_value
22CHECK: [0x0000000100000f97,  0x0000000100000f99): DW_OP_consts +4, DW_OP_stack_value
23
24CHECK: [0x0000000100000f94,  0x0000000100000f97): DW_OP_consts +5, DW_OP_stack_value
25
26CHECK: [0x0000000100000f97,  0x0000000100000f99): DW_OP_reg0 RAX
27