diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-09-15 15:14:13 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-09-15 15:14:13 +0000 |
| commit | 25a2cb9dbe1c026ca5338b9880a890209c3fc331 (patch) | |
| tree | c2127faf6cd758238ffcf35b293c4191d90ae160 /clang/test/SemaCXX | |
| parent | bbd0eca340fe6e5d986b7eac7a288500e33d85ee (diff) | |
| download | bcm5719-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.cpp | 9 |
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"))); +}; |

