diff options
Diffstat (limited to 'test/SemaCXX/copy-constructor-error.cpp')
-rw-r--r-- | test/SemaCXX/copy-constructor-error.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/SemaCXX/copy-constructor-error.cpp b/test/SemaCXX/copy-constructor-error.cpp index c50a1579bb..2e42fcc3b1 100644 --- a/test/SemaCXX/copy-constructor-error.cpp +++ b/test/SemaCXX/copy-constructor-error.cpp @@ -1,11 +1,13 @@ // RUN: clang-cc -fsyntax-only -verify %s -struct S { - S (S); // expected-error {{copy constructor must pass its first argument by reference}} +struct S { // expected-note {{candidate function}} + S (S); // expected-error {{copy constructor must pass its first argument by reference}} \\ + // expected-note {{candidate function}} }; S f(); void g() { - S a( f() ); // expected-error {{no matching constructor}} + S a( f() ); // expected-error {{call to constructor of 'a' is ambiguous}} } + |