Debian Codegraph @

gcc/testsuite/obj-c++.dg/attributes/class-attribute-3.mm

raw
1 /* Contributed by Nicola Pero <[email protected]>, December 2010. */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-Wno-objc-root-class" } */
4
5 /* Test that you get a warning when an unknown class attribute is ignored. */
6
7 #include <objc/objc.h>
8
9 __attribute__ ((unknown_attribute))
10 @interface MyClass /* { dg-warning "ignored" } */
11 {
12 Class isa;
13 }
14 + (id) new;
15 @end