diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-08-20 21:03:30 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-08-20 21:03:30 +0000 |
commit | 6aa46a19c56750e17f7acedc47d95111fd2dcd5d (patch) | |
tree | e34ae427575758352981df5376a2975e2dbcd403 /test/Parser/cxx1z-nested-namespace-definition.cpp | |
parent | ffe56ea4c355b82c6fdbed4befc7fe3b956e35a2 (diff) |
Notes
Diffstat (limited to 'test/Parser/cxx1z-nested-namespace-definition.cpp')
-rw-r--r-- | test/Parser/cxx1z-nested-namespace-definition.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Parser/cxx1z-nested-namespace-definition.cpp b/test/Parser/cxx1z-nested-namespace-definition.cpp index 96f34c540acc2..e5e809aa03665 100644 --- a/test/Parser/cxx1z-nested-namespace-definition.cpp +++ b/test/Parser/cxx1z-nested-namespace-definition.cpp @@ -2,13 +2,13 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: not %clang_cc1 -x c++ -fixit %t -Werror -DFIXIT // RUN: %clang_cc1 -x c++ %t -DFIXIT -// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++1z -Wc++14-compat +// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++17 -Wc++14-compat namespace foo1::foo2::foo3 { #if __cplusplus <= 201400L -// expected-warning@-2 {{nested namespace definition is a C++1z extension; define each namespace separately}} +// expected-warning@-2 {{nested namespace definition is a C++17 extension; define each namespace separately}} #else -// expected-warning@-4 {{nested namespace definition is incompatible with C++ standards before C++1z}} +// expected-warning@-4 {{nested namespace definition is incompatible with C++ standards before C++17}} #endif int foo(int x) { return x; } } |