22 lines · cpp
1// Purpose:2// Check that \DexExpectWatchValue correctly applies a penalty when3// expected values are not found.4//5// UNSUPPORTED: system-darwin6//7//8// RUN: %dexter_regression_test_cxx_build %s -o %t9// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck %s10// CHECK: expect_watch_value.cpp:11 12int main()13{14 for (int i = 0; i < 3; ++i)15 int a = i; // DexLabel('loop')16 return 0; // DexLabel('ret')17}18 19// DexExpectWatchValue('i', '0', '1', '2', on_line=ref('loop'))20// DexExpectWatchValue('i', '3', on_line=ref('ret'))21// ---------------------^ out of scope22