1// Purpose:
2// Check that using an undeclared address gives a useful error message.
3//
4// RUN: %dexter_regression_test_build %s -o %t
5// RUN: not %dexter_regression_test_run --binary %t -v -- %s | FileCheck %s --match-full-lines
6
7
8int main() {
9 int *result = new int(0);
10 delete result; // DexLabel('test_line')
11}
12
13
14// CHECK: parser error:{{.*}}err_undeclared_addr.cpp([[# @LINE + 3]]): Undeclared address: 'result'
15// CHECK-NEXT: {{Dex}}ExpectWatchValue('result', address('result'), on_line=ref('test_line'))
16
17// DexExpectWatchValue('result', address('result'), on_line=ref('test_line'))
18

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