Sign in
android
/
toolchain
/
gcc
/
donut
/
.
/
gcc-4.4.0
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
nullptr1.C
blob: 5e9767a00ee38090a3870b1ac66ca6b0e8a87f77 [
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" }
// { dg-warning "integer overflow in expression" "" { target *-*-* } 8 }