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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [proto-lossage-5.m] - Diff between revs 154 and 816

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

Rev 154 Rev 816
/* 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.