aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/objc.dg/attributes/class-attribute-3.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/objc.dg/attributes/class-attribute-3.m')
-rw-r--r--gcc-4.9/gcc/testsuite/objc.dg/attributes/class-attribute-3.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/objc.dg/attributes/class-attribute-3.m b/gcc-4.9/gcc/testsuite/objc.dg/attributes/class-attribute-3.m
new file mode 100644
index 000000000..6cc5d4e26
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/objc.dg/attributes/class-attribute-3.m
@@ -0,0 +1,14 @@
+/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
+/* { dg-do compile } */
+
+/* Test that you get a warning when an unknown class attribute is ignored. */
+
+#include <objc/objc.h>
+
+__attribute__ ((unknown_attribute))
+@interface MyClass
+{ /* { dg-warning "ignored" } */
+ Class isa;
+}
++ (id) new;
+@end