OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / rfg14.C
1 // { dg-do assemble  }
2 void *vp;
3 int (*ap)[];
4 struct S *sp;
5 union U *up;
6 int (*fp)();
7  
8 void
9 test ()
10 {
11     vp++;               /* { dg-error "" } incrementing void * */
12     ap++;               /* { dg-error "" } incrementing ptr to incomplete type */
13     sp++;               /* { dg-error "" } incrementing ptr to incomplete type */
14     up++;               /* { dg-error "" } incrementing ptr to incomplete type */
15     fp++;               /* { dg-error "" } incrementing ptr to function */
16 }