We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6241809 commit 0576363Copy full SHA for 0576363
1 file changed
test/testother.cpp
@@ -2015,6 +2015,17 @@ class TestOther : public TestFixture {
2015
"while (true);\n"
2016
"}\n");
2017
ASSERT_EQUALS("", errout_str());
2018
+
2019
+ check("void f() {\n"
2020
+ " int y1 = 0;\n"
2021
+ " for (int i = 0; i < 3; ++i) {\n"
2022
+ " for(int j = 0; j < 3; ++j) {\n"
2023
+ " y1 = y1 + 1;\n"
2024
+ " dostuff(y1);\n"
2025
+ " }\n"
2026
2027
+ "}\n");
2028
+ ASSERT_EQUALS("", errout_str());
2029
}
2030
2031
#define checkOldStylePointerCast(...) checkOldStylePointerCast_(__FILE__, __LINE__, __VA_ARGS__)
0 commit comments