repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[gcn] Fix gfx906's sramecc setting
[official-gcc.git]
/
gcc
/
testsuite
/
objc
/
execute
/
np-2.m
blob
af973cf9d942d195c38da09f61cc7d1e7151d80c
1
/*
2
* Contributed by Nicola Pero <n.pero@mi.flashnet.it>
3
* Tue Sep 19 4:34AM
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
printf ("methodA\n");
19
}
20
+ initialize { return self; }
21
@end
22
23
int main (void)
24
{
25
[MyObject methodA];
26
27
return 0;
28
}
29
30