blob: 6b243c26cc3155cb7e35399bf685b6b35dfddf84 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregorb656d882009-10-08 22:38:14 +00002
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}