mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-12 14:50:42 +08:00
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:
parent
debd777c82
commit
31bd653e71
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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" } */
|
||||
|
Loading…
Reference in New Issue
Block a user