blob: 015ea3d7f70d5033ae5f6545a874173f263f046f [file] [log] [blame]
Sean Hunt9ae60d52011-05-26 01:26:05 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Sean Hunt78e9c552011-06-03 17:55:52 +00002// RUM: %clang_cc1 -Wno-default-arg-special-member -Werror -fsyntax-only %s
Sean Hunt9ae60d52011-05-26 01:26:05 +00003
4class foo {
5 foo(foo&, int); // expected-note {{was not a special member function}}
6 foo(int); // expected-note {{was not a special member function}}
7 foo(const foo&); // expected-note {{was a copy constructor}}
8};
9
10foo::foo(foo&, int = 0) { } // expected-warning {{makes this constructor a copy constructor}}
11foo::foo(int = 0) { } // expected-warning {{makes this constructor a default constructor}}
12foo::foo(const foo& = 0) { } //expected-warning {{makes this constructor a default constructor}}