diff options
Diffstat (limited to 'test/SemaCXX/cxx0x-compat.cpp')
| -rw-r--r-- | test/SemaCXX/cxx0x-compat.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/test/SemaCXX/cxx0x-compat.cpp b/test/SemaCXX/cxx0x-compat.cpp index bcf0cf11dc18..8f7aaab6a438 100644 --- a/test/SemaCXX/cxx0x-compat.cpp +++ b/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  | 
