1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3double operator +(double, double); // expected-error{{overloaded 'operator+' must have at least one parameter of class or enumeration type}}
4
5struct A
6{
7  operator int();
8};
9
10int main()
11{
12  A a, b;
13  int i0 = a + 1;
14  int i1 = a + b;
15}
16