// RUN: %clang_cc1 -fsyntax-only -verify %s
classX{public:intoperator++();operatorint();};voidtest(){
X x;int i;
i = x.operator++();
i = x.operatorint();
x.operator--();// expected-error{{no member named 'operator--'}}
x.operatorfloat();// expected-error{{no member named 'operator float'}}
x.operator;// expected-error{{expected a type}}
}voidtest2(){
X *x;int i;
i = x->operator++();
i = x->operatorint();
x->operator--();// expected-error{{no member named 'operator--'}}
x->operatorfloat();// expected-error{{no member named 'operator float'}}
x->operator;// expected-error{{expected a type}}
}namespacepr13157{classA{public:voidoperator()(int x,int y =2,...){}};voidf(){A()(1);}}