aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/objc.dg/ivar-invalid-type-1.m
blob: 3e7785db86f84413188f71321b52ec93bcaf343e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
#include <objc/objc.h>

@interface MyRootClass
{
  Class isa;
}
@end

@interface MySubClass
{
  volatile int a;  /* This is allowed */
  extern int b;    /* { dg-error "expected" } */
  static int c;    /* { dg-error "expected" } */
  inline int d;    /* { dg-error "expected" } */
  typedef int e;   /* { dg-error "expected" } */
  __thread int f;  /* { dg-error "expected" } */
}
@end