gcc/testsuite/objc.dg/root-class-00.m
raw| 1 | /* Test Wobjc-root-class. |
| 2 | Note that we don't issue a warning unless the TU contains an implementation |
| 3 | for the class. */ |
| 4 | /* { dg-additional-options "-fsyntax-only " } */ |
| 5 | |
| 6 | @interface ARootObject |
| 7 | @end |
| 8 | |
| 9 | @implementation ARootObject |
| 10 | @end /* { dg-warning {class 'ARootObject' defined without specifying a base class} } */ |