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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc/] [execute/] [np-1.m] - Blame information for rev 862

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

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

powered by: WebSVN 2.1.0

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