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
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2373,7 +2373,7 @@ class TestNullPointer : public TestFixture {
2373
2373
check("void f(int *p = 0) {\n"
2374
2374
" std::cout << p ? *p : 0;\n"// Due to operator precedence, this is equivalent to: (std::cout << p) ? *p : 0;
2375
2375
"}");
2376
-
TODO_ASSERT_EQUALS("[test.cpp:2]: (warning) Possible null pointer dereference if the default parameter value is used: p\n", "", errout.str()); // Check the first branch of ternary
2376
+
ASSERT_EQUALS("[test.cpp:2]: (warning) Possible null pointer dereference if the default parameter value is used: p\n", errout.str()); // Check the first branch of ternary
2377
2377
2378
2378
check("void f(char *p = 0) {\n"
2379
2379
" std::cout << p ? *p : 0;\n"// Due to operator precedence, this is equivalent to: (std::cout << p) ? *p : 0;
0 commit comments