blob: 4f9dd2b79d62b6acee088472a773251a7f013f7d [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
class Foo {
Foo();
(Foo)(float) { }
explicit Foo(int);
Foo(const Foo&);
static Foo(short, short); // expected-error{{constructor cannot be declared 'static'}}
virtual Foo(double); // expected-error{{constructor cannot be declared 'virtual'}}
Foo(long) const; // expected-error{{'const' qualifier is not allowed on a constructor}}
int Foo(int, int); // expected-error{{constructor cannot have a return type}}
};