summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/property/at-property-3.mm
blob: adf4dd0366bf0cf671b97c30dd4030d9b5cedb03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */

#include <objc/objc.h>

@interface MyRootClass
{
  Class isa;
}
@property volatile int a;  /* This is allowed */
@property extern int b;    /* { dg-error "invalid type" } */
@property static int c;    /* { dg-error "invalid type" } */
@property inline int d;    /* { dg-error "declared as an .inline." } */
@property typedef int e;   /* { dg-error "invalid type" } */
@property __thread int f;  /* { dg-error "invalid type" } */
@end