// RUN: %clang_cc1 -fsyntax-only -verify %s
;
X ;
X
;
void
X ; // expected-error{{overloaded 'operator+' must have at least one parameter of class or enumeration type}}
X ; // expected-error{{parameter of overloaded 'operator*' cannot have a default argument}}
X ; // expected-error{{overloaded 'operator/' cannot be variadic}}
X ; // expected-error{{overloaded 'operator%' must be a binary operator (has 1 parameter)}}
void ; // expected-error{{overloaded 'operator()' must be a non-static member function}}
typedef int INT;
typedef float FLOAT;
Y& ;
Y ;
X ; // expected-error{{parameter of overloaded post-increment operator must have type 'int' (not 'FLOAT' (aka 'float'))}}
int operator+; // expected-error{{'operator+' cannot be the name of a variable or data member}}
;