* objc.dg/fobjc-std-1.m: Updated to test that class extensions
produce an error with -fobjc-std=objc1.
* obj-c++.dg/fobjc-std-1.mm: Same change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167700
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com>
+
+ * objc.dg/fobjc-std-1.m: Updated to test that class extensions
+ produce an error with -fobjc-std=objc1.
+ * obj-c++.dg/fobjc-std-1.mm: Same change.
+
2010-12-10 Jakub Jelinek <jakub@redhat.com>
PR c++/46001
return MyRootClass.name; /* { dg-error "not available in Objective.C 1.0" } */
}
+@interface MyRootClass3
+{
+ Class isa;
+}
+@end
+
+/* There is a problem with the testsuite on the following line; the compiler seems Ok, but the testsuite still barfs. */
+/* @interface MyRootClass3 () */ /* dg-error "not available in Objective.C 1.0" */
+/* @end */
{
return MyRootClass.name; /* { dg-error "not available in Objective.C 1.0" } */
}
+
+@interface MyRootClass3
+{
+ Class isa;
+}
+@end
+
+@interface MyRootClass3 ()
+@end /* { dg-error "not available in Objective.C 1.0" } */