summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx0x-compat.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-08-13 22:26:53 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-08-13 22:26:53 +0000
commitcbaaa295f033714ccbf4e5b54cc447f50d29011c (patch)
treef34ee0c7803ee499344e14168194928d9d95fbef /clang/test/SemaCXX/cxx0x-compat.cpp
parent6c74e32139ff7a9716d7ca0b2e57e0e8c1c58862 (diff)
downloadbcm5719-llvm-cbaaa295f033714ccbf4e5b54cc447f50d29011c.tar.gz
bcm5719-llvm-cbaaa295f033714ccbf4e5b54cc447f50d29011c.zip
Replace remaining user-visible mentions of C++1z with C++17.
llvm-svn: 310804
Diffstat (limited to 'clang/test/SemaCXX/cxx0x-compat.cpp')
-rw-r--r--clang/test/SemaCXX/cxx0x-compat.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/cxx0x-compat.cpp b/clang/test/SemaCXX/cxx0x-compat.cpp
index bcf0cf11dc1..8f7aaab6a43 100644
--- a/clang/test/SemaCXX/cxx0x-compat.cpp
+++ b/clang/test/SemaCXX/cxx0x-compat.cpp
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -std=c++98 -Wc++11-compat -verify %s
-// RUN: %clang_cc1 -fsyntax-only -std=c++1z -Wc++11-compat -verify %s
+// RUN: %clang_cc1 -fsyntax-only -std=c++17 -Wc++11-compat -verify %s
#if __cplusplus < 201103L
@@ -42,14 +42,14 @@ void h(size_t foo, size_t bar) {
char c = 'x'_x; // expected-warning {{will be treated as a user-defined literal suffix}}
template<int ...N> int f() { // expected-warning {{C++11 extension}}
- return (N + ...); // expected-warning {{C++1z extension}}
+ return (N + ...); // expected-warning {{C++17 extension}}
}
#else
auto init_capture = [a(0)] {}; // expected-warning {{initialized lambda captures are incompatible with C++ standards before C++14}}
-static_assert(true); // expected-warning {{incompatible with C++ standards before C++1z}}
+static_assert(true); // expected-warning {{incompatible with C++ standards before C++17}}
-template<int ...N> int f() { return (N + ...); } // expected-warning {{incompatible with C++ standards before C++1z}}
+template<int ...N> int f() { return (N + ...); } // expected-warning {{incompatible with C++ standards before C++17}}
#endif
OpenPOWER on IntegriCloud