2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / prepost2.C
blob3156749cff9c08740a89c1df611d057b7faf52ea
1 // { dg-do assemble  }
2 // GROUPS passed initialization
3 class foo {
4 public:
5       operator ++ (); // { dg-error "" } no type or storage class
6       operator ++ (int); // { dg-error "" } no type or storage class
7       operator ++ (char);               // illegal// { dg-error "" } .*
8       operator ++ (short);              // illegal// { dg-error "" } .*
9       operator ++ (long);               // illegal// { dg-error "" } .*