aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/obj-c++.dg/ivar-invalid-type-1.mm
blob: 4c1480a6be998e7be45678a46072133e38449d86 (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 "invalid type" } */
  static int c;    /* { dg-error "invalid type" } */
  inline int d;    /* { dg-error "declared as an .inline." } */
  typedef int e;   /* { dg-error "invalid type" } */
  __thread int f;  /* { dg-error "invalid type" } */
}
@end