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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [proto-lossage-7.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
/* Check that typedefs of ObjC classes preserve
2
   any @protocol qualifiers.  */
3
/* { dg-do compile } */
4
#include <objc/Object.h>
5
 
6
@protocol CanDoStuff;
7
 
8
typedef Object<CanDoStuff> CanDoStuffType;
9
typedef Object<CanDoStuff> *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.