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

#include <objc/objc.h>

@interface MyRootClass
{
  Class isa;
}
@property;                      /* { dg-error "expected identifier" } */
@property int;                  /* { dg-error "expected identifier" } */
@property int a;
@property int b, c;
@property () int d;             /* { dg-error "expected identifier" } */
@property (readonly) int e;
@property (readonly,) int f;    /* { dg-error "expected identifier" } */
@property (xxx) int g;          /* { dg-error "unknown property attribute" } */
@property (readonly,xxx) int h; /* { dg-error "unknown property attribute" } */
@property ( int i;              /* { dg-error "expected identifier" } */
                                /* { dg-error "expected ... "       "" { target *-*-* } 18 } */
@end