blob: aadbbeb2fcd70a178ef4065427f39f119c4159fd [file] [log] [blame]
Sean Hunt9ae60d52011-05-26 01:26:05 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3class foo {
4 foo(foo&, int); // expected-note {{was not a special member function}}
5 foo(int); // expected-note {{was not a special member function}}
6 foo(const foo&); // expected-note {{was a copy constructor}}
7};
8
9foo::foo(foo&, int = 0) { } // expected-warning {{makes this constructor a copy constructor}}
10foo::foo(int = 0) { } // expected-warning {{makes this constructor a default constructor}}
11foo::foo(const foo& = 0) { } //expected-warning {{makes this constructor a default constructor}}