summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx1z-attributes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx1z-attributes.cpp')
-rw-r--r--clang/test/Parser/cxx1z-attributes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx1z-attributes.cpp b/clang/test/Parser/cxx1z-attributes.cpp
index 52b0a53ad8f..f57b47dd586 100644
--- a/clang/test/Parser/cxx1z-attributes.cpp
+++ b/clang/test/Parser/cxx1z-attributes.cpp
@@ -4,6 +4,8 @@ namespace [[]] foo {}
namespace [[]] {}
namespace [[]] bad = foo; // expected-error {{attributes cannot be specified on namespace alias}}
+namespace [[]] A::B {} // expected-error {{attributes cannot be specified on a nested namespace definition}}
+
enum test {
bing [[]],
bar [[]] = 1,
OpenPOWER on IntegriCloud