1 // Purpose:
2 // Test that \DexLimitSteps can be used without a condition (i.e. the
3 // breakpoint range is set any time from_line is stepped on).
4 //
5 // RUN: %dexter_regression_test -- %s | FileCheck %s
6 // CHECK: unconditional.cpp
7
8 int glob;
main()9 int main() {
10 int test = 0;
11 for (test = 1; test < 4; test++) {
12 glob += test; // DexLabel('from')
13 glob += test; // DexLabel('to')
14 }
15 return test; // test = 4
16 }
17
18 // DexLimitSteps(from_line=ref('from'), to_line=ref('to'))
19 //// Unconditionally limit dexter's view of the program from line 'from' to
20 //// 'to'. Check for test=0, 1, 2 so that the test will fail if dexter sees
21 //// test=0 or test=4.
22 // DexExpectWatchValue('test', 1, 2, 3)
23
24