blob: 571a4cf4c83f68ce2e0ea3147bafe34eab81dd0f [file] [log] [blame]
// { dg-options "-Wzero-as-null-pointer-constant" }
// { dg-do compile { target c++11 } }
#include <cstddef>
void test01()
{
char* x(NULL);
char* x2{NULL};
char* x3 = NULL;
char* x4(0); // { dg-warning "12: zero as null pointer" }
char* x5 = 0; // { dg-warning "14: zero as null pointer" }
}