repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wpointer-arith-1.C
blob
1e031f9d73234aa896a4b7e9e63d419c77505daf
1
// PR c++/56815
2
// { dg-options "-Wpointer-arith" }
3
4
int main()
5
{
6
void *pv = 0;
7
pv++; // { dg-warning "3:ISO C\\+\\+ forbids incrementing a pointer" }
8
9
typedef void (*pft) ();
10
11
pft pf = 0;
12
pf++; // { dg-warning "3:ISO C\\+\\+ forbids incrementing a pointer" }
13
}