File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments