URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Bail out gracefully if attempting to derive from a class that has only been
|
/* Bail out gracefully if attempting to derive from a class that has only been
|
forward-declared (via @class). Conversely, @compatibility_alias declarations
|
forward-declared (via @class). Conversely, @compatibility_alias declarations
|
should be traversed to find the @interface. */
|
should be traversed to find the @interface. */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
#include
|
#include
|
|
|
@class MyWpModule;
|
@class MyWpModule;
|
|
|
@compatibility_alias MyObject Object;
|
@compatibility_alias MyObject Object;
|
@compatibility_alias FictitiousModule MyWpModule;
|
@compatibility_alias FictitiousModule MyWpModule;
|
|
|
@protocol MySelTarget
|
@protocol MySelTarget
|
- (id) meth1;
|
- (id) meth1;
|
@end
|
@end
|
|
|
@protocol Img
|
@protocol Img
|
- (id) meth2;
|
- (id) meth2;
|
@end
|
@end
|
|
|
@interface FunnyModule: FictitiousModule /* { dg-error ".MyWpModule., superclass of .FunnyModule." } */
|
@interface FunnyModule: FictitiousModule /* { dg-error ".MyWpModule., superclass of .FunnyModule." } */
|
- (id) meth2;
|
- (id) meth2;
|
@end
|
@end
|
|
|
@interface MyProjWpModule : MyWpModule /* { dg-error ".MyWpModule., superclass of .MyProjWpModule." } */ {
|
@interface MyProjWpModule : MyWpModule /* { dg-error ".MyWpModule., superclass of .MyProjWpModule." } */ {
|
id i1, i2;
|
id i1, i2;
|
}
|
}
|
- (id) meth1;
|
- (id) meth1;
|
- (id) meth2;
|
- (id) meth2;
|
@end
|
@end
|
|
|
@interface AnotherModule: MyObject
|
@interface AnotherModule: MyObject
|
- (id) meth1;
|
- (id) meth1;
|
@end
|
@end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.