diff options
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/property/at-property-3.mm')
-rw-r--r-- | gcc/testsuite/obj-c++.dg/property/at-property-3.mm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/obj-c++.dg/property/at-property-3.mm b/gcc/testsuite/obj-c++.dg/property/at-property-3.mm new file mode 100644 index 000000000..adf4dd036 --- /dev/null +++ b/gcc/testsuite/obj-c++.dg/property/at-property-3.mm @@ -0,0 +1,15 @@ +/* { dg-do compile } */ + +#include <objc/objc.h> + +@interface MyRootClass +{ + Class isa; +} +@property volatile int a; /* This is allowed */ +@property extern int b; /* { dg-error "invalid type" } */ +@property static int c; /* { dg-error "invalid type" } */ +@property inline int d; /* { dg-error "declared as an .inline." } */ +@property typedef int e; /* { dg-error "invalid type" } */ +@property __thread int f; /* { dg-error "invalid type" } */ +@end |