fobjc-std-1.m: Updated to test that class extensions produce an error with -fobjc-std=objc1.

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
This commit is contained in:
Nicola Pero 2010-12-10 20:22:37 +00:00 committed by Nicola Pero
parent debd777c82
commit 31bd653e71
3 changed files with 24 additions and 0 deletions

View 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

View 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 */

View 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" } */