1 // RUN: clang-cc -fsyntax-only -verify %s
3 struct S { // expected-note {{candidate function}}
4 S (S); // expected-error {{copy constructor must pass its first argument by reference}} \\
5 // expected-note {{candidate function}}
11 S a( f() ); // expected-error {{call to constructor of 'a' is ambiguous}}