OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [obj-c++.dg/] [super-class-2.mm] - Diff between revs 308 and 338

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 308 Rev 338
/* 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 "../objc-obj-c++-shared/Object1.h"
#include "../objc-obj-c++-shared/Object1.h"
@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
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.