X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fobjc.dg%2Fproto-hier-1.m;fp=gcc%2Ftestsuite%2Fobjc.dg%2Fproto-hier-1.m;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=17ea72e8db1d44c5fc604f3b47472b94d20edd24;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/objc.dg/proto-hier-1.m b/gcc/testsuite/objc.dg/proto-hier-1.m deleted file mode 100644 index 17ea72e8..00000000 --- a/gcc/testsuite/objc.dg/proto-hier-1.m +++ /dev/null @@ -1,54 +0,0 @@ -/* Test for handling of protocol hierarchies. */ -/* Author: Ziemowit Laski . */ -/* { dg-do compile } */ - -/* One-line substitute for objc/objc.h */ -typedef struct objc_object { struct objc_class *class_pointer; } *id; - -@protocol NSObj -- (void)someMethod; -@end - -@protocol NSCopying -- (void)someOtherMethod; -@end - -@interface NSObject -- (void)someMethod; -@end - -@implementation NSObject -- (void)someMethod {} -@end - -@protocol Booing -- (void)boo; -@end - -@interface Boo: NSObject // protocol has only one parent -@end - -@implementation Boo -- (void)boo {} -@end - -@protocol Fooing // Fooing has two parent protocols -- (void)foo; -@end - -@interface Foo: NSObject -@end - -@implementation Foo -- (void)foo {} -- (void)someOtherMethod {} -@end - -int foo(void) { - id stupidVar; - [stupidVar boo]; - [stupidVar foo]; - [stupidVar anotherMsg]; /* { dg-warning "not implemented by protocol" } */ - /* { dg-warning "return type defaults to id" "" { target *-*-* } 51 } */ - return 0; -}