Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
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" }