Sign in
llvm
/
llvm-archive
/
f91d1660b4827134c7666ae9637f21a2741d183f
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
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" }