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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [proto-lossage-5.m] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 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.