gcc/testsuite/objc.dg/property/at-property-3.m
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | #include <objc/objc.h> |
| 4 | |
| 5 | @interface MyRootClass |
| 6 | { |
| 7 | Class isa; |
| 8 | } |
| 9 | @property volatile int a; /* This is allowed */ |
| 10 | @property extern int b; /* { dg-error "expected" } */ |
| 11 | @property static int c; /* { dg-error "expected" } */ |
| 12 | @property inline int d; /* { dg-error "expected" } */ |
| 13 | @property typedef int e; /* { dg-error "expected" } */ |
| 14 | @property __thread int f; /* { dg-error "expected" } */ |
| 15 | @end |