1// The dbgeng driver doesn't support --target-run-args yet.
2// UNSUPPORTED: system-windows
3//
4// RUN: %dexter_regression_test_build %s -o %t
5// RUN: %dexter_regression_test_run --binary %t --target-run-args "a b 'c d'" -- %s | FileCheck %s
6// CHECK: target_run_args.c:
7
8int main(int argc, const char **argv) {
9 if (argc == 4)
10 return 0; // DexLabel('retline')
11
12 return 1; // DexUnreachable()
13}
14
15// DexExpectWatchValue('argc', '4', on_line=ref('retline'))
16// DexExpectWatchValue('argv[1][0]', "'a'", on_line=ref('retline'))
17

source code of cross-project-tests/debuginfo-tests/dexter/feature_tests/subtools/test/target_run_args.c