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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc/] [execute/] [np-1.m] - Blame information for rev 702

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 702 jeremybenn
/*
2
 * Contributed by Nicola Pero <n.pero@mi.flashnet.it>
3
 * Tue Sep 19 4:29AM
4
 */
5
 
6
#include <objc/objc.h>
7
 
8
@protocol MyProtocol
9
- (oneway void) methodA;
10
@end
11
 
12
@interface MyObject <MyProtocol>
13
@end
14
 
15
@implementation MyObject
16
- (oneway void) methodA
17
{
18
}
19
@end
20
 
21
int main (void)
22
{
23
  MyObject *object = nil;
24
 
25
  [object methodA];
26
 
27
  return 0;
28
}
29
 
30
 

powered by: WebSVN 2.1.0

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