summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-09-15 15:14:13 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-09-15 15:14:13 +0000
commit25a2cb9dbe1c026ca5338b9880a890209c3fc331 (patch)
treec2127faf6cd758238ffcf35b293c4191d90ae160 /clang/test/SemaCXX
parentbbd0eca340fe6e5d986b7eac7a288500e33d85ee (diff)
downloadbcm5719-llvm-25a2cb9dbe1c026ca5338b9880a890209c3fc331.tar.gz
bcm5719-llvm-25a2cb9dbe1c026ca5338b9880a890209c3fc331.zip
When pretty printing attributes that have enumeration arguments, print the enumerator identifier (as a string literal) instead of the internal enumerator integral value.
llvm-svn: 217771
Diffstat (limited to 'clang/test/SemaCXX')
-rw-r--r--clang/test/SemaCXX/attr-print.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/attr-print.cpp b/clang/test/SemaCXX/attr-print.cpp
index a07eeff5646..c430aeacfb7 100644
--- a/clang/test/SemaCXX/attr-print.cpp
+++ b/clang/test/SemaCXX/attr-print.cpp
@@ -22,3 +22,12 @@ typedef int Small1 __attribute__((mode(byte)));
// CHECK: int small __attribute__((mode(byte)));
int small __attribute__((mode(byte)));
+
+// CHECK: int v __attribute__((visibility("hidden")));
+int v __attribute__((visibility("hidden")));
+
+// FIXME: The attribute should be printed with the tag declaration.
+class __attribute__((consumable(unknown))) AttrTester1 {
+ // CHECK: void callableWhen() __attribute__((callable_when("unconsumed", "consumed")));
+ void callableWhen() __attribute__((callable_when("unconsumed", "consumed")));
+};
OpenPOWER on IntegriCloud