We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e88b4dc commit b4901f8Copy full SHA for b4901f8
1 file changed
test/testuninitvar.cpp
@@ -1096,6 +1096,15 @@ class TestUninitVar : public TestFixture {
1096
"}");
1097
ASSERT_EQUALS("", errout.str());
1098
1099
+ checkUninitVar("int foo() {\n"
1100
+ " int a;\n"
1101
+ " for (a = 0; a < 0; a++) {\n"
1102
+ " }\n"
1103
+ " return a;\n"
1104
+ "}");
1105
+
1106
+ ASSERT_EQUALS("", errout.str());
1107
1108
// Ticket #2226: C++0x loop
1109
checkUninitVar("void f() {\n"
1110
" container c;\n"
0 commit comments