URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [super-class-2.mm] - Rev 703
Compare with Previous | Blame | View Log
/* Bail out gracefully if attempting to derive from a class that has only beenforward-declared (via @class). Conversely, @compatibility_alias declarationsshould be traversed to find the @interface. *//* { dg-do compile } */#include "../objc-obj-c++-shared/TestsuiteObject.h"@class MyWpModule;@compatibility_alias MyObject TestsuiteObject;@compatibility_alias FictitiousModule MyWpModule;@protocol MySelTarget- (id) meth1;@end@protocol Img- (id) meth2;@end@interface FunnyModule: FictitiousModule <Img> /* { dg-error ".MyWpModule., superclass of .FunnyModule." } */- (id) meth2;@end@interface MyProjWpModule : MyWpModule <MySelTarget, Img> /* { dg-error ".MyWpModule., superclass of .MyProjWpModule." } */ {id i1, i2;}- (id) meth1;- (id) meth2;@end@interface AnotherModule: MyObject <MySelTarget>- (id) meth1;@end
