blob: 259092014b25b05fa5a61356b3acf199bc4faf20 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed prefix-postfix
class foo {
public:
operator ++ (); // { dg-error "requires a type specifier for all declarations" }
};
int main()
{
foo x;
// This should fall back to calling operator++(), and be an error
x++; // { dg-error "cannot increment value of type" } no type or storage class
}