Debian Codegraph @

gcc/testsuite/g++.dg/conversion/nullptr2.C

raw
1 /* Test for enumeration as NULL pointer constant. */
2 /* PR c++/14644 */
3 /* { dg-do compile } */
4
5 enum { NULL = 0 };
6
7 void *p = 0;
8
9 void *q = NULL; // { dg-error "cannot convert" }
10