summaryrefslogtreecommitdiffstats
path: root/test/Sema/attr-deprecated.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/attr-deprecated.c')
-rw-r--r--test/Sema/attr-deprecated.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/attr-deprecated.c b/test/Sema/attr-deprecated.c
index 565be7f..8124ab0 100644
--- a/test/Sema/attr-deprecated.c
+++ b/test/Sema/attr-deprecated.c
@@ -120,3 +120,7 @@ struct test22 {
foo_dep c, d __attribute((deprecated)); // expected-warning {{'foo_dep' is deprecated}}
__attribute((deprecated)) foo_dep e, f;
};
+
+typedef int test23_ty __attribute((deprecated)); // expected-note {{previous definition is here}}
+typedef int test23_ty; // expected-note {{'test23_ty' declared here}} expected-warning {{redefinition of typedef 'test23_ty' is a C11 feature}}
+test23_ty test23_v; // expected-warning {{'test23_ty' is deprecated}}
OpenPOWER on IntegriCloud