summaryrefslogtreecommitdiff
path: root/test/Sema/ast-print.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/ast-print.c')
-rw-r--r--test/Sema/ast-print.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Sema/ast-print.c b/test/Sema/ast-print.c
index 4c0aef5b2f3f..f701b1220953 100644
--- a/test/Sema/ast-print.c
+++ b/test/Sema/ast-print.c
@@ -65,3 +65,12 @@ void initializers() {
// CHECK: } z = {(struct Z){}};
} z = {(struct Z){}};
}
+
+// CHECK-LABEL: enum EnumWithAttributes {
+enum EnumWithAttributes {
+ // CHECK-NEXT: EnumWithAttributesFoo __attribute__((deprecated(""))),
+ EnumWithAttributesFoo __attribute__((deprecated)),
+ // CHECK-NEXT: EnumWithAttributesBar __attribute__((unavailable(""))) = 50
+ EnumWithAttributesBar __attribute__((unavailable)) = 50
+ // CHECK-NEXT: } __attribute__((deprecated("")))
+} __attribute__((deprecated));