aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/attributes/root-class-01.m
blob: 84da94aa1ffe5238fbcbc889b96c9131fb81574a (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test Wobjc-root-class warning is suppressed by the objc_root_class attr.
   Note that we don't issue a warning unless the TU contains an implementation
   for the class.  This should compile without warning.  */
/*  { dg-additional-options "-fsyntax-only " } */

__attribute__((objc_root_class))
@interface ARootObject
@end

@implementation ARootObject
@end