Skip to content

Commit 2c99d0b

Browse files
Update testsimplifytokens.cpp
1 parent aace023 commit 2c99d0b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/testsimplifytokens.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2207,6 +2207,9 @@ class TestSimplifyTokens : public TestFixture {
22072207
"for ( i = 0 ; ( i < sz ) && ( sz > 3 ) ; ++ i ) { }\n"
22082208
"}";
22092209
ASSERT_EQUALS(expected, tokenizeAndStringify(code, dinit(TokenizeAndStringifyOptions, $.cpp = false)));
2210+
ASSERT_EQUALS("[test.c:3:25]: (debug) valueflow.cpp:4550:(valueFlow) bailout: variable '(i<sz)&&(sz>3)' used in loop [valueFlowBailout]\n"
2211+
"[test.c:3:25]: (debug) valueflow.cpp:4550:(valueFlow) bailout: variable '(i<sz)&&(sz>3)' used in loop [valueFlowBailout]\n",
2212+
errout_str());
22102213
}
22112214

22122215
void simplifyKnownVariables49() { // #3691

0 commit comments

Comments
 (0)