summaryrefslogtreecommitdiff
path: root/cross-project-tests/debuginfo-tests/dexter/feature_tests/subtools/test/err_syntax_dexdeclarefile.cpp
blob: 3914f2a284a0d8e95b85e0fa91979d3259eba777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Purpose:
//      Check that Dexter command syntax errors associate with the line and file
//      they appeared in rather than the current declared file.
//
// RUN: %dexter_regression_test_cxx_build %s -o %t
// RUN: not %dexter_base test --binary %t %dexter_regression_test_debugger_args -v -- %s \
// RUN:     | FileCheck --dump-input-context=999999999 %s --implicit-check-not=FAIL-FILENAME-MATCH

// CHECK: err_syntax_dexdeclarefile.cpp(14): Undeclared address: 'not_been_declared'

int main() { return 0; }

// DexDeclareFile('FAIL-FILENAME-MATCH')
// DexExpectWatchValue('example', address('not_been_declared'))