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