We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f60c18c commit 5080353Copy full SHA for 5080353
1 file changed
test/testleakautovar.cpp
@@ -644,9 +644,9 @@ class TestLeakAutoVar : public TestFixture {
644
645
check("void f(const char* n) {\n" // #12724
646
" FILE* fp = fopen(n, \"r\");\n"
647
- "bool b = (fp == NULL);\n"
648
- "if (b)\n"
649
- " return;\n"
+ " bool b = (fp == NULL);\n"
+ " if (b)\n"
+ " return;\n"
650
"}\n", dinit(CheckOptions, $.cpp = true));
651
ASSERT_EQUALS("[test.cpp:6:1]: (error) Resource leak: fp [resourceLeak]\n", errout_str());
652
}
0 commit comments