blob: da276be982b7e2ab6708b5fa50859adb4d5486d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* Contributed by Nicola Pero <n.pero@mi.flashnet.it>
* Tue Sep 19 4:34AM
*/
#include "../../objc-obj-c++-shared/Protocol1.h"
#include <objc/objc.h>
@protocol MyProtocol
+ (oneway void) methodA;
@end
@interface MyObject <MyProtocol>
@end
@implementation MyObject
+ (oneway void) methodA
{
printf ("methodA\n");
}
#ifdef __NEXT_RUNTIME__
+ initialize { return self; }
#endif
@end
int main (void)
{
[MyObject methodA];
exit (0);
}
|