gcc/testsuite/objc.dg/property/at-property-2.m
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | #include <objc/objc.h> |
| 4 | |
| 5 | @interface MyRootClass |
| 6 | { |
| 7 | Class isa; |
| 8 | } |
| 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 "declared as a function" } */ |
| 12 | @property typedef int j; /* { dg-error "expected" } */ |
| 13 | @end |