Skip to content

Commit 3145747

Browse files
Update testtokenize.cpp
1 parent 2c99d0b commit 3145747

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/testtokenize.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,7 @@ class TestTokenizer : public TestFixture {
17031703
" for ( ; x; )\n"
17041704
" l1: l2: --x;\n"
17051705
"}"));
1706+
ASSERT_EQUALS("[test.cpp:2:11]: (debug) valueflow.cpp:4574:(valueFlow) bailout: variable 'x' used in loop [valueFlowBailout]\n", errout_str());
17061707

17071708
// Labels before {
17081709
ASSERT_EQUALS("void f ( int x ) {\n"
@@ -1713,6 +1714,7 @@ class TestTokenizer : public TestFixture {
17131714
" for ( ; x; )\n"
17141715
" l1: l2: { -- x; }\n"
17151716
"}"));
1717+
ASSERT_EQUALS("[test.cpp:2:11]: (debug) valueflow.cpp:4574:(valueFlow) bailout: variable 'x' used in loop [valueFlowBailout]\n", errout_str());
17161718

17171719
// Labels before try/catch
17181720
ASSERT_EQUALS("void f ( int x ) {\n"
@@ -1727,6 +1729,7 @@ class TestTokenizer : public TestFixture {
17271729
" try { throw 1; }\n"
17281730
" catch(...) { --x; }\n"
17291731
"}"));
1732+
ASSERT_EQUALS("[test.cpp:2:11]: (debug) valueflow.cpp:4574:(valueFlow) bailout: variable 'x' used in loop [valueFlowBailout]\n", errout_str());
17301733
}
17311734

17321735

0 commit comments

Comments
 (0)