PR target/84336
[official-gcc.git] / gcc / testsuite / objc.dg / attributes / class-attribute-3.m
blob6cc5d4e268100840eb33f24c9351f0dd208d643f
1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.  */
2 /* { dg-do compile } */
4 /* Test that you get a warning when an unknown class attribute is ignored.  */
6 #include <objc/objc.h>
8 __attribute__ ((unknown_attribute))
9 @interface MyClass
10 { /* { dg-warning "ignored" } */
11   Class isa;
13 + (id) new;
14 @end