Sean Hunt | 9ae60d5 | 2011-05-26 01:26:05 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |
| 3 | class 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 | |
| 9 | foo::foo(foo&, int = 0) { } // expected-warning {{makes this constructor a copy constructor}} |
| 10 | foo::foo(int = 0) { } // expected-warning {{makes this constructor a default constructor}} |
| 11 | foo::foo(const foo& = 0) { } //expected-warning {{makes this constructor a default constructor}} |