blob: 33f4b8ac70ad5d49a9d23392977ba020323ab64d [file] [log] [blame]
// { dg-do compile }
// { dg-options "-pedantic" }
class foo {
public:
void operator& (int = 1); // { dg-error "8:.void foo::operator&\\(int\\). cannot have default arguments" }
void operator++ (int = 2); // { dg-error "8:.void foo::operator\\+\\+\\(int\\). cannot have default arguments" }
void operator-- (int = 3); // { dg-error "8:.void foo::operator--\\(int\\). cannot have default arguments" }
};