Fariborz Jahanian | 52ab92b | 2009-08-06 17:22:51 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | |||||
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}} | ||||
6 | }; | ||||
7 | |||||
8 | S f(); | ||||
9 | |||||
10 | void g() { | ||||
11 | S a( f() ); // expected-error {{call to constructor of 'a' is ambiguous}} | ||||
12 | } | ||||
13 |