1// Purpose:
2// Test that \DexFinishTest can be used without a condition or hit_count,
3// so the test simply exits as soon as the line referenced by \DexFinishTest
4// is stepped on.
5// Test using the conditional controller (using \DexLimitSteps).
6//
7// The dbgeng driver doesn't support \DexLimitSteps yet.
8// UNSUPPORTED: system-windows, system-darwin
9//
10// RUN: %dexter_regression_test_build %s -o %t
11// RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s
12// CHECK: limit_steps_simple.cpp
13
14int main() {
15 int x = 0; // DexLabel('start')
16 x = 1;
17 x = 2; // DexLabel('finish_line')
18} // DexLabel('finish')
19
20// DexLimitSteps(from_line=ref('start'), to_line=ref('finish'))
21// DexFinishTest(on_line=ref('finish_line'))
22// DexExpectWatchValue('x', 0, 1)
23

source code of cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/perfect/dex_finish_test/limit_steps_simple.cpp