PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / obj-c++.dg / ivar-invalid-type-1.mm
blob4c1480a6be998e7be45678a46072133e38449d86
1 /* { dg-do compile } */
2 #include <objc/objc.h>
4 @interface MyRootClass
6   Class isa;
8 @end
10 @interface MySubClass
12   volatile int a;  /* This is allowed */
13   extern int b;    /* { dg-error "invalid type" } */
14   static int c;    /* { dg-error "invalid type" } */
15   inline int d;    /* { dg-error "declared as an .inline." } */
16   typedef int e;   /* { dg-error "invalid type" } */
17   __thread int f;  /* { dg-error "invalid type" } */
19 @end