| 1 |
/* { dg-do compile } */ |
| 2 |
// { dg-additional-options "-Wno-objc-root-class" } |
| 3 |
#include <objc/objc.h> |
| 4 |
|
| 5 |
@interface MyRootClass |
| 6 |
{ |
| 7 |
Class isa; |
| 8 |
} |
| 9 |
@end |
| 10 |
|
| 11 |
@interface MySubClass |
| 12 |
{ |
| 13 |
volatile int a; /* This is allowed */ |
| 14 |
extern int b; /* { dg-error "invalid type" } */ |
| 15 |
static int c; /* { dg-error "invalid type" } */ |
| 16 |
inline int d; /* { dg-error "declared as an .inline." } */ |
| 17 |
typedef int e; /* { dg-error "invalid type" } */ |
| 18 |
__thread int f; /* { dg-error "invalid type" } */ |
| 19 |
} |
| 20 |
@end |