OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New tests
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
objc
/
execute
/
np-2.m
1
/*
2
* Contributed by Nicola Pero <n.pero@mi.flashnet.it>
3
* Tue Sep 19 4:34AM
4
*/
5
#include <objc/objc.h>
6
#include <objc/Protocol.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
printf ("methodA\n");
19
}
20
@end
21
22
int main (void)
23
{
24
[MyObject methodA];
25
26
exit (0);
27
}
28
29