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