blob: 711c006e3a8dfe42e1baf342e4dd9ba9b69a1cba [file] [log] [blame]
// Purpose:
// Check that \DexLimitSteps works even if the opening breakpoint line
// doesn't exist. This can happen due to optimisations or label is on an
// empty line.
//
// FIXME: Windows regression tests run with dbgeng. \DexLimitSteps isn't yet
// supported with dbgeng.
//
// REQUIRES: system-linux
//
// RUN: %dexter_regression_test -- %s | FileCheck %s
// CHECK: limit_steps_line_mismatch.cpp
int main() {
int i = 0;
for (; i < 2; i++) {
// DexLabel('from')
int x = i;
}
int ret = 0;
return ret; // DexLabel('to')
}
// DexLimitSteps('1', '1', from_line=ref('from'), to_line=ref('to'))
// DexExpectWatchValue('i', 0, 1, 2, from_line=ref('from'), to_line=ref('to'))