Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
nullptr2.C
blob: 74ceff49dba63c020d8906689c1f98819e164329 [
file
] [
log
] [
blame
]
/* Test for enumeration as NULL pointer constant. */
/* PR c++/14644 */
/* { dg-do compile } */
enum
{
NULL
=
0
};
void
*
p
=
0
;
void
*
q
=
NULL
;
// { dg-error "cannot convert" }