1 // RUN: clang-cc -fsyntax-only -verify %s
7 explicit Foo(int); // expected-note {{previous declaration is here}}
10 ((Foo))(INT); // expected-error{{cannot be redeclared}}
12 Foo(Foo foo, int i = 17, int j = 42); // expected-error{{copy constructor must pass its first argument by reference}}
14 static Foo(short, short); // expected-error{{constructor cannot be declared 'static'}}
15 virtual Foo(double); // expected-error{{constructor cannot be declared 'virtual'}}
16 Foo(long) const; // expected-error{{'const' qualifier is not allowed on a constructor}}
18 int Foo(int, int); // expected-error{{constructor cannot have a return type}}
21 Foo::Foo(const Foo&) { }
26 extern const Anon anon;
27 extern "C" const Anon anon2;
29 // PR3188: The extern declaration complained about not having an appropriate
41 Length l() const { return *this; }
44 // <rdar://problem/6815988>
83 A::S::operator int() { return 1; }