diff options
Diffstat (limited to 'clang/test/SemaCXX/cxx0x-compat.cpp')
-rw-r--r-- | clang/test/SemaCXX/cxx0x-compat.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/cxx0x-compat.cpp b/clang/test/SemaCXX/cxx0x-compat.cpp index 8f7aaab6a43..b9ccadd85c2 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++17 -Wc++11-compat -verify %s +// RUN: %clang_cc1 -fsyntax-only -std=c++98 -Wc++11-compat-pedantic -verify %s +// RUN: %clang_cc1 -fsyntax-only -std=c++17 -Wc++11-compat-pedantic -verify %s #if __cplusplus < 201103L @@ -52,4 +52,7 @@ static_assert(true); // expected-warning {{incompatible with C++ standards befor template<int ...N> int f() { return (N + ...); } // expected-warning {{incompatible with C++ standards before C++17}} +namespace [[]] NS_with_attr {} // expected-warning {{incompatible with C++ standards before C++17}} +enum { e [[]] }; // expected-warning {{incompatible with C++ standards before C++17}} + #endif |