1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 S (S
); // expected-error {{copy constructor must pass its first argument by reference}}
14 foo(foo
&, int); // expected-note {{previous}}
15 foo(int); // expected-note {{previous}}
16 foo(const foo
&); // expected-note {{previous}}
19 foo::foo(foo
&, int = 0) { } // expected-error {{makes this constructor a copy constructor}}
20 foo::foo(int = 0) { } // expected-error {{makes this constructor a default constructor}}
21 foo::foo(const foo
& = 0) { } //expected-error {{makes this constructor a default constructor}}
26 inline A(A
&, int); // expected-note {{previous}}
29 A::A(A
&, int = 0) { } // expected-error {{makes this constructor a copy constructor}}
39 A(int, int, int); // expected-note {{previous}}
41 A::A(int a
= 0, // expected-error {{makes this constructor a default constructor}}
47 B(const B
&, int); // expected-note {{previous}}
49 B::B(const B
& = B(0), // expected-error {{makes this constructor a default constructor}}
54 C(const C
&, int); // expected-note {{previous}}
57 int = 0) { // expected-error {{makes this constructor a copy constructor}}