You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/testnullpointer.cpp
-18Lines changed: 0 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,6 @@ class TestNullPointer : public TestFixture {
71
71
TEST_CASE(nullpointer26); // #3589
72
72
TEST_CASE(nullpointer27); // #6568
73
73
TEST_CASE(nullpointer28); // #6491
74
-
TEST_CASE(nullpointer29); // #5238
75
74
TEST_CASE(nullpointer30); // #6392
76
75
TEST_CASE(nullpointer_addressOf); // address of
77
76
TEST_CASE(nullpointerSwitch); // #2626
@@ -1307,23 +1306,6 @@ class TestNullPointer : public TestFixture {
1307
1306
ASSERT_EQUALS("[test.cpp:4]: (error) Possible null pointer dereference: s\n", errout.str());
1308
1307
}
1309
1308
1310
-
voidnullpointer29() { // #5238
1311
-
check("struct SomeStruct\n"
1312
-
"{\n"
1313
-
" bool item;\n"
1314
-
"};\n"
1315
-
"bool f1(bool bFlag)\n"
1316
-
"{\n"
1317
-
" SomeStruct *s = 0;\n"
1318
-
" if (bFlag)\n"
1319
-
" {\n"
1320
-
" s = new SomeStruct;\n"
1321
-
" }\n"
1322
-
" return s != 0 || (s != 0 && !s->item);\n"
1323
-
"}\n", true);
1324
-
ASSERT_EQUALS("[test.cpp:12] -> [test.cpp:12]: (warning) Either the condition 's!=0' is redundant or there is possible null pointer dereference: s.\n", errout.str());
0 commit comments