diff options
Diffstat (limited to 'clang/test/SemaCXX/attr-print.cpp')
| -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"))); +}; |

