repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
nullptr2.C
blob
74ceff49dba63c020d8906689c1f98819e164329
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