aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/fobjc-std-1.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc.dg/fobjc-std-1.m')
-rw-r--r--gcc/testsuite/objc.dg/fobjc-std-1.m10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/objc.dg/fobjc-std-1.m b/gcc/testsuite/objc.dg/fobjc-std-1.m
index 4f0a7e6..8adf59b 100644
--- a/gcc/testsuite/objc.dg/fobjc-std-1.m
+++ b/gcc/testsuite/objc.dg/fobjc-std-1.m
@@ -4,9 +4,8 @@
#include <objc/objc.h>
-__attribute__ ((deprecated))
@interface MyRootClass
-{ /* { dg-error "class attributes are not available in Objective.C 1.0" } */
+{
Class isa;
@package /* { dg-error "not available in Objective.C 1.0" } */
int a;
@@ -30,6 +29,13 @@ __attribute__ ((deprecated))
@end
__attribute__ ((deprecated))
+@interface MyRootClass2
+{ /* { dg-error "class attributes are not available in Objective.C 1.0" } */
+ Class isa;
+}
+@end
+
+__attribute__ ((deprecated))
@protocol MyProtocol
- (id) test; /* { dg-error "protocol attributes are not available in Objective.C 1.0" } */
@required /* { dg-error "not available in Objective.C 1.0" } */