OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

Only display areas with differences | Details | Blame | View Log

Rev 308 Rev 338
/* Do not lose references to forward-declared protocols.  */
/* Do not lose references to forward-declared protocols.  */
/* { dg-do compile } */
/* { dg-do compile } */
@class MyBaseClass;
@class MyBaseClass;
@class MyClassThatFails;
@class MyClassThatFails;
@protocol _MyProtocol;
@protocol _MyProtocol;
@interface MyClassThatFails
@interface MyClassThatFails
- (MyBaseClass<_MyProtocol> *) aMethod;
- (MyBaseClass<_MyProtocol> *) aMethod;
@end
@end
@interface MyBaseClass
@interface MyBaseClass
@end
@end
@protocol _MyProtocol
@protocol _MyProtocol
@end
@end
@implementation MyClassThatFails
@implementation MyClassThatFails
- (MyBaseClass<_MyProtocol> *) aMethod
- (MyBaseClass<_MyProtocol> *) aMethod
{
{
    return 0;
    return 0;
}
}
@end
@end
 
 

powered by: WebSVN 2.1.0

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