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