OSDN Git Service

2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com>
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Dec 2010 20:22:37 +0000 (20:22 +0000)
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Dec 2010 20:22:37 +0000 (20:22 +0000)
* 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

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

index 2ef48e3..3ab2382 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 3696d58..59db950 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 8adf59b..9a15b8a 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" } */