1 | // Purpose: |
2 | // Check that \DexLimitSteps works even if the opening breakpoint line |
3 | // doesn't exist. This can happen due to optimisations or label is on an |
4 | // empty line. |
5 | // |
6 | // RUN: %dexter_regression_test_build %s -o %t |
7 | // RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s |
8 | // CHECK: limit_steps_line_mismatch.cpp |
9 | |
10 | int main() { |
11 | int i = 0; |
12 | for (; i < 2; i++) { |
13 | // DexLabel('from') |
14 | int x = i; |
15 | } |
16 | int ret = 0; |
17 | return ret; // DexLabel('to') |
18 | } |
19 | |
20 | // DexLimitSteps('1', '1', from_line=ref('from'), to_line=ref('to')) |
21 | // DexExpectWatchValue('i', 0, 1, 2, from_line=ref('from'), to_line=ref('to')) |
22 | |