Debian Codegraph @

gcc/testsuite/obj-c++.dg/attributes/root-class-01.mm

raw
1 /* Test Wobjc-root-class warning is suppressed by the objc_root_class attr.
2 Note that we don't issue a warning unless the TU contains an implementation
3 for the class. This should compile without warning. */
4 /* { dg-additional-options "-fsyntax-only " } */
5
6 __attribute__((objc_root_class))
7 @interface ARootObject
8 @end
9
10 @implementation ARootObject
11 @end