Skip to content

Commit 5080353

Browse files
Update testleakautovar.cpp
1 parent f60c18c commit 5080353

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/testleakautovar.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,9 @@ class TestLeakAutoVar : public TestFixture {
644644

645645
check("void f(const char* n) {\n" // #12724
646646
" FILE* fp = fopen(n, \"r\");\n"
647-
"bool b = (fp == NULL);\n"
648-
"if (b)\n"
649-
" return;\n"
647+
" bool b = (fp == NULL);\n"
648+
" if (b)\n"
649+
" return;\n"
650650
"}\n", dinit(CheckOptions, $.cpp = true));
651651
ASSERT_EQUALS("[test.cpp:6:1]: (error) Resource leak: fp [resourceLeak]\n", errout_str());
652652
}

0 commit comments

Comments
 (0)