summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/qualified-names-diag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/qualified-names-diag.cpp')
-rw-r--r--test/SemaTemplate/qualified-names-diag.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/SemaTemplate/qualified-names-diag.cpp b/test/SemaTemplate/qualified-names-diag.cpp
index b2df47b..06b9492 100644
--- a/test/SemaTemplate/qualified-names-diag.cpp
+++ b/test/SemaTemplate/qualified-names-diag.cpp
@@ -1,7 +1,12 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
namespace std {
- template<typename T> class vector { }; // expected-note{{candidate}}
+ template<typename T> class vector { }; // expected-note{{candidate function (the implicit copy assignment operator) not viable}}
+#if __cplusplus >= 201103L // C++11 or later
+ // expected-note@-2 {{candidate function (the implicit move assignment operator) not viable}}
+#endif
}
typedef int INT;
OpenPOWER on IntegriCloud