1// Purpose:
2// Check that we can use label-relative line numbers.
3//
4// RUN: %dexter_regression_test_build %s -o %t
5// RUN: %dexter_regression_test_run --binary %t -v -- %s | FileCheck %s
6//
7// CHECK: label_offset.cpp: (1.0000)
8
9int main() { // DexLabel('main')
10 int var = 0;
11 var = var;
12 return 0;
13}
14
15/*
16DexExpectWatchValue('var', '0', from_line=ref('main')+2, to_line=ref('main')+3)
17DexExpectProgramState({
18 'frames': [
19 {
20 'location': { 'lineno': ref('main')+2 },
21 'watches': { 'var': '0' }
22 }
23 ]
24})
25*/
26

source code of cross-project-tests/debuginfo-tests/dexter/feature_tests/subtools/test/label_offset.cpp