diff options
Diffstat (limited to 'test/SemaCXX/overload-call-copycon.cpp')
| -rw-r--r-- | test/SemaCXX/overload-call-copycon.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/SemaCXX/overload-call-copycon.cpp b/test/SemaCXX/overload-call-copycon.cpp index 6720cb6953384..84971024acd82 100644 --- a/test/SemaCXX/overload-call-copycon.cpp +++ b/test/SemaCXX/overload-call-copycon.cpp @@ -1,6 +1,12 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -Wnon-pod-varargs -class X { }; // expected-note {{the implicit copy constructor}} \ - // expected-note{{the implicit default constructor}} +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s -Wnon-pod-varargs +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s -Wnon-pod-varargs + +class X { }; // expected-note {{the implicit copy constructor}} +// expected-note@-1 {{the implicit default constructor}} +#if __cplusplus >= 201103L // C++11 or later +// expected-note@-3 {{candidate constructor (the implicit move constructor) not viable}} +#endif int& copycon(X x); // expected-note{{passing argument to parameter}} float& copycon(...); |
