summaryrefslogtreecommitdiffstats
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.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/SemaCXX/copy-constructor-error.cpp b/test/SemaCXX/copy-constructor-error.cpp
index 2e42fcc..9cae775 100644
--- a/test/SemaCXX/copy-constructor-error.cpp
+++ b/test/SemaCXX/copy-constructor-error.cpp
@@ -1,13 +1,12 @@
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: %clang_cc1 -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() );
}
OpenPOWER on IntegriCloud