d: Fix gdc -O2 -mavx generates misaligned vmovdqa instruction [PR114171]
[official-gcc.git] / gcc / testsuite / objc.dg / ivar-invalid-type-1.m
blob98bf36e17c9e14a1a115d93d014bf7e057539d6d
1 /* { dg-do compile } */
2 #include <objc/objc.h>
4 #if defined(__has_attribute) && __has_attribute(objc_root_class)
5 __attribute__((objc_root_class))
6 #endif
7 @interface MyRootClass
9   Class isa;
11 @end
13 @interface MySubClass
15   volatile int a;  /* This is allowed */
16   extern int b;    /* { dg-error "expected" } */
17   static int c;    /* { dg-error "expected" } */
18   inline int d;    /* { dg-error "expected" } */
19   typedef int e;   /* { dg-error "expected" } */
20   __thread int f;  /* { dg-error "expected" } */
22 @end