OSDN Git Service

* lib/gcc-simulate-thread.exp: New.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / ivar-invalid-type-1.m
1 /* { dg-do compile } */
2 #include <objc/objc.h>
3
4 @interface MyRootClass
5 {
6   Class isa;
7 }
8 @end
9
10 @interface MySubClass
11 {
12   volatile int a;  /* This is allowed */
13   extern int b;    /* { dg-error "expected" } */
14   static int c;    /* { dg-error "expected" } */
15   inline int d;    /* { dg-error "expected" } */
16   typedef int e;   /* { dg-error "expected" } */
17   __thread int f;  /* { dg-error "expected" } */
18 }
19 @end