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
constchar errp[] = "[test.cpp:1] -> [test.cpp:1]: (warning) Possible null pointer dereference: p - otherwise it is redundant to check it against null.\n";
2476
-
2477
-
check("void f(FILE *p){ isatty (*p);if(!p){}}");
2478
-
ASSERT_EQUALS(errp,errout.str());
2479
-
2480
-
check("void f(){ isatty (0);}");
2481
-
ASSERT_EQUALS("",errout.str());
2482
-
2483
-
check("void f(char *p){ mkdir (p, 0);}");
2484
-
ASSERT_EQUALS("",errout.str());
2485
-
2486
-
check("void f(char *p){ int i = 0; mkdir (p, i);}");
0 commit comments