summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-06-23 22:30:04 +0000
committerJohn McCall <rjmccall@apple.com>2012-06-23 22:30:04 +0000
commitbeae29a5f4bf7558d4a59a0277c9c14f8f51760c (patch)
tree4e97927d854700ac869be3a15f3d0a5d5e1ba5d3 /clang/test
parent4b06b1a0ee5955ba7a50e89115de67bb28a1ffad (diff)
downloadbcm5719-llvm-beae29a5f4bf7558d4a59a0277c9c14f8f51760c.tar.gz
bcm5719-llvm-beae29a5f4bf7558d4a59a0277c9c14f8f51760c.zip
Recognize GNU attributes after 'enum class'. Fixes the libc++ build.
llvm-svn: 159089
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Parser/cxx0x-attributes.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx0x-attributes.cpp b/clang/test/Parser/cxx0x-attributes.cpp
index db5eebfaacf..a0b8467bcca 100644
--- a/clang/test/Parser/cxx0x-attributes.cpp
+++ b/clang/test/Parser/cxx0x-attributes.cpp
@@ -207,3 +207,8 @@ void baz () {
for ([[]] int n : { 1, 2, 3 }) {
}
}
+
+enum class __attribute__((visibility("hidden"))) SecretKeepers {
+ one, /* rest are deprecated */ two, three
+};
+enum class [[]] EvenMoreSecrets {};
OpenPOWER on IntegriCloud