2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / obj-c++.dg / property / at-property-2.mm
blobd8433dffcd4f4386b51c5175e2e1009773748d49
1 /* { dg-do compile } */
3 #include <objc/objc.h>
5 @interface MyRootClass
7   Class isa;
9 @property int name __attribute__((deprecated));
10 @property int table __attribute__((xxx));       /* { dg-warning ".xxx. attribute directive ignored" } */
11 @property void function (void);                 /* { dg-error "declaration of function .function. in invalid context" } */
12 @property typedef int j;                        /*  { dg-error "invalid type for property" } */
13 @end