Sign in
llvm
/
llvm-archive
/
1456578521548c1ea3e191fcd25bb39efd8203cd
/
.
/
llvm-gcc-4.2
/
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" }