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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [objc.dg/] [proto-lossage-5.m] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* 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.