We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62c0cc commit 6bd2c2bCopy full SHA for 6bd2c2b
1 file changed
test/testuninitvar.cpp
@@ -569,13 +569,13 @@ class TestUninitVar : public TestFixture {
569
" std::cout << *p << 1;\n"
570
"}");
571
ASSERT_EQUALS("[test.cpp:3:17]: (error) Uninitialized variable: p [legacyUninitvar]\n", errout_str());
572
- }
+ }
573
574
checkUninitVar("void f() {\n" // #13908
575
" int* i = new int;\n"
576
" std::cout << i << \", \" << *i;\n"
577
" delete i;\n"
578
- "}\n";
+ "}\n");
579
ASSERT_EQUALS("[test.cpp:3:32]: (error) Memory is allocated but not initialized: i [uninitdata]\n", errout_str());
580
}
581
0 commit comments