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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [proto-lossage-7.mm] - Blame information for rev 703

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 703 jeremybenn
/* Check that typedefs of ObjC classes preserve
2
   any @protocol qualifiers.  */
3
/* { dg-do compile } */
4
#include 
5
 
6
@protocol CanDoStuff;
7
 
8
typedef Object CanDoStuffType;
9
typedef Object *CanDoStuffTypePtr;
10
 
11
@protocol CanDoStuff
12
- (int) dostuff;
13
@end
14
 
15
@protocol MoreStuff
16
- (int) morestuff;
17
@end
18
 
19
int main(void)
20
{
21
    CanDoStuffTypePtr  dice     = nil;
22
    CanDoStuffType    *nodice   = nil;
23
    int count;
24
    count = [dice dostuff];
25
    count = [nodice dostuff];
26
    return 0;
27
}
28
 

powered by: WebSVN 2.1.0

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