aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg14.C
blob: 8475ecd6c8178a48b20c14da9c084b8498649b3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
void *vp;
int (*ap)[];
struct S *sp;
union U *up;
int (*fp)();
 
void
test ()
{
    vp++;               /* ERROR - incrementing void * */
    ap++;               /* ERROR - incrementing ptr to incomplete type */
    sp++;               /* ERROR - incrementing ptr to incomplete type */
    up++;               /* ERROR - incrementing ptr to incomplete type */
    fp++;               /* ERROR - incrementing ptr to function */
}