diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-11-08 17:09:50 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-11-08 17:09:50 +0000 |
commit | 0de6a9b5bfe6ca9a82b342f584208dacc188deb8 (patch) | |
tree | 30a5f5c072e5f6d00c7da1bd214203450e80f8e4 /clang/test/Parser/cxx1z-attributes.cpp | |
parent | c0ae7dfe75e5980aaa65c8907211b3e96c85d1cc (diff) | |
download | bcm5719-llvm-0de6a9b5bfe6ca9a82b342f584208dacc188deb8.tar.gz bcm5719-llvm-0de6a9b5bfe6ca9a82b342f584208dacc188deb8.zip |
Missing testcase from r221581.
llvm-svn: 221582
Diffstat (limited to 'clang/test/Parser/cxx1z-attributes.cpp')
-rw-r--r-- | clang/test/Parser/cxx1z-attributes.cpp | 2 |
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,
|