diff options
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/property/at-property-2.mm')
-rw-r--r-- | gcc/testsuite/obj-c++.dg/property/at-property-2.mm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/obj-c++.dg/property/at-property-2.mm b/gcc/testsuite/obj-c++.dg/property/at-property-2.mm new file mode 100644 index 000000000..d8433dffc --- /dev/null +++ b/gcc/testsuite/obj-c++.dg/property/at-property-2.mm @@ -0,0 +1,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 |