Skip to content

Commit 0576363

Browse files
Update testother.cpp
1 parent 6241809 commit 0576363

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/testother.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,17 @@ class TestOther : public TestFixture {
20152015
"while (true);\n"
20162016
"}\n");
20172017
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+
" }\n"
2027+
"}\n");
2028+
ASSERT_EQUALS("", errout_str());
20182029
}
20192030

20202031
#define checkOldStylePointerCast(...) checkOldStylePointerCast_(__FILE__, __LINE__, __VA_ARGS__)

0 commit comments

Comments
 (0)