Commit 31bd653e by Nicola Pero Committed by Nicola Pero

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
parent debd777c
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> 2010-12-10 Jakub Jelinek <jakub@redhat.com>
PR c++/46001 PR c++/46001
......
...@@ -71,3 +71,12 @@ id test (void) ...@@ -71,3 +71,12 @@ id test (void)
return MyRootClass.name; /* { dg-error "not available in Objective.C 1.0" } */ 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 */
...@@ -65,3 +65,12 @@ id test (void) ...@@ -65,3 +65,12 @@ id test (void)
{ {
return MyRootClass.name; /* { dg-error "not available in Objective.C 1.0" } */ 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" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment