2 // g++ 1.37.1 bug 900428_02
4 // g++ fails to issue either errors or warnings (even with -pedantic) for
5 // attempts to perform either pre or post increment or decrement operations
6 // on variables which have either pointer-to-void types or pointer-to-function
9 // cfront 2.0 passes this test.
11 // keywords: pointer arithmetic, increment, decrement
18 vp++; /* { dg-error "" } */
19 ++vp; /* { dg-error "" } */
20 vp--; /* { dg-error "" } */
21 --vp; /* { dg-error "" } */
23 fp++; /* { dg-error "" } */
24 ++fp; /* { dg-error "" } */
25 fp--; /* { dg-error "" } */
26 --fp; /* { dg-error "" } */