OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* call.c (null_ptr_cst_p): Add explicit TREE_CONSTANT_OVERFLOW check.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
nullptr1.C
1
/* Test for overflow in NULL pointer constant. */
2
/* { dg-do compile } */
3
4
#include <limits.h>
5
6
void *p = 0;
7
8
void *q = 0 * (INT_MAX + 1); // { dg-error "invalid conversion" }
9
10