===================================================================
@@ -1,5 +1,11 @@
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 Nicola Pero <nicola.pero@meta-innovation.com>
+
* objc.dg/class-extension-1.m: New.
* objc.dg/class-extension-2.m: New.
* objc.dg/class-extension-3.m: New.
===================================================================
@@ -65,3 +65,12 @@
{
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" } */
===================================================================
@@ -71,3 +71,11 @@
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" */