fold-const.c (merge_ranges): If range_successor or range_predecessor fail, just return 0.
[platform/upstream/gcc.git] / gcc / testsuite / g++.dg / conversion / nullptr2.C
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