blob: 2493fd07b0786d1557ce720bc9d794c1e4788bd8 [file] [log] [blame]
// Purpose:
// Check that \DexExpectProgramState correctly applies a penalty when
// an expected program state is never found.
//
// UNSUPPORTED: system-darwin
//
// RUN: not %dexter_regression_test -- %s | FileCheck %s
// CHECK: expect_program_state.cpp:
int GCD(int lhs, int rhs)
{
if (rhs == 0) // DexLabel('check')
return lhs;
return GCD(rhs, lhs % rhs);
}
int main()
{
return GCD(111, 259);
}
/*
DexExpectProgramState({
'frames': [
{
'location': {
'lineno': ref('check')
},
'watches': {
'lhs': '0', 'rhs': '0'
}
},
]
})
*/