Debian Codegraph @

cross-project-tests/debuginfo-tests/dexter/feature_tests/subtools/test/err_syntax_mline.cpp

raw
1 // Purpose:
2 // Check that parsing bad commands gives a useful error.
3 // - Syntax error (misplaced ',') over multiple lines
4 // Check directives are in check.txt to prevent dexter reading any embedded
5 // commands.
6 //
7 // RUN: %dexter_regression_test_cxx_build %s -o %t
8 // RUN: not %dexter_base test --binary %t %dexter_regression_test_debugger_args \
9 // RUN: -v -- %s | FileCheck %s --match-full-lines --strict-whitespace
10 //
11 // CHECK:parser error:{{.*}}err_syntax_mline.cpp(21): invalid syntax
12 // CHECK: ,'a', 3, 3, 3, 3, on_line=0)
13 // CHECK: ^
14
15 int main(){
16 return 0;
17 }
18
19 /*
20 DexExpectWatchValue(
21 ,'a', 3, 3, 3, 3, on_line=0)
22 */