Sign in
android
/
toolchain
/
gcc
/
donut
/
.
/
gcc-4.2.1
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
nullptr1.C
blob: 6230a2999ef499fbeeb35c422e879a7b62cd2634 [
file
] [
log
] [
blame
]
/* Test for overflow in NULL pointer constant. */
/* { dg-do compile } */
#include
<limits.h>
void
*
p
=
0
;
void
*
q
=
0
*
(
INT_MAX
+
1
);
// { dg-error "invalid conversion" }