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

#include <objc/objc.h>

@interface MyRootClass
{
  Class isa;
}
@property int name __attribute__((deprecated));
@property int table __attribute__((xxx));       /* { dg-warning ".xxx. attribute directive ignored" } */
@property void function (void);                 /* { dg-error "declaration of function .function. in invalid context" } */
@property typedef int j;                        /*  { dg-error "invalid type for property" } */
@end