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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [proto-lossage-5.m] - Blame information for rev 309

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 309 jeremybenn
/* Do not lose references to forward-declared protocols.  */
2
/* { dg-do compile } */
3
@class MyBaseClass;
4
@class MyClassThatFails;
5
@protocol _MyProtocol;
6
 
7
@interface MyClassThatFails
8
- (MyBaseClass<_MyProtocol> *) aMethod;
9
@end
10
 
11
@interface MyBaseClass
12
@end
13
 
14
@protocol _MyProtocol
15
@end
16
 
17
@implementation MyClassThatFails
18
- (MyBaseClass<_MyProtocol> *) aMethod
19
{
20
    return 0;
21
}
22
@end

powered by: WebSVN 2.1.0

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