fobjc-std-1.m: Updated to test that class extensions produce an error with -fobjc...
authorNicola Pero <nicola.pero@meta-innovation.com>
Fri, 10 Dec 2010 20:22:37 +0000 (20:22 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Fri, 10 Dec 2010 20:22:37 +0000 (20:22 +0000)
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.

From-SVN: r167700

gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/fobjc-std-1.mm
gcc/testsuite/objc.dg/fobjc-std-1.m

index 2ef48e328515f75bada38c0b956b2bb8581c9c8c..3ab23827c75650829a323e16a67d0496539a55d6 100644 (file)
@@ -1,3 +1,9 @@
+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
index 3696d58df490a37d0e1525dc2e176ce9f6b300b7..59db95091db550f1897f7a4bc5d96313bed249ce 100644 (file)
@@ -71,3 +71,12 @@ id test (void)
   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 */
index 8adf59b6733465bbe1ea3ee63a1c6517d922e661..9a15b8af5da93e1fa15edecbd8d5b1f67e5e8d8b 100644 (file)
@@ -65,3 +65,12 @@ id test (void)
 {
   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" } */