2 // GROUPS passed initialization
5 operator ++ (); // { dg-error "" } no type or storage class
6 operator ++ (int); // { dg-error "" } no type or storage class
7 operator ++ (char); // { dg-error "no type" }
8 // { dg-error "7:postfix .int foo::operator\\+\\+\\(char\\). must have .int. as its argument" "sec" { target *-*-* } .-1 }
9 operator ++ (short); // { dg-error "no type" }
10 // { dg-error "7:postfix .int foo::operator\\+\\+\\(short int\\). must have .int. as its argument" "sec" { target *-*-* } .-1 }
11 operator ++ (long); // { dg-error "no type" }
12 // { dg-error "7:postfix .int foo::operator\\+\\+\\(long int\\). must have .int. as its argument" "sec" { target *-*-* } .-1 }