diff options
Diffstat (limited to 'clang/test/Parser/cxx1z-attributes.cpp')
| -rw-r--r-- | clang/test/Parser/cxx1z-attributes.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx1z-attributes.cpp b/clang/test/Parser/cxx1z-attributes.cpp new file mode 100644 index 00000000000..52b0a53ad8f --- /dev/null +++ b/clang/test/Parser/cxx1z-attributes.cpp @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z %s
+
+namespace [[]] foo {}
+namespace [[]] {}
+namespace [[]] bad = foo; // expected-error {{attributes cannot be specified on namespace alias}}
+
+enum test {
+ bing [[]],
+ bar [[]] = 1,
+ baz [[]][[]],
+ quux [[]][[]] = 4
+};
|

