blob: afe741faa48dd4e5dda80c07d2a915d68db41dce [file] [log] [blame]
Fariborz Jahanian52ab92b2009-08-06 17:22:51 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3struct S { // expected-note {{candidate function}}
4 S (S); // expected-error {{copy constructor must pass its first argument by reference}} \\
5 // expected-note {{candidate function}}
6};
7
8S f();
9
10void g() {
11 S a( f() ); // expected-error {{call to constructor of 'a' is ambiguous}}
12}
13