Commit ab9b1e42 by Ovidiu Predescu

Added.

From-SVN: r36727
parent b8fbe62c
/*
* Contributed by Nicola Pero <n.pero@mi.flashnet.it>
* Tue Sep 19 4:29AM
*/
#include <objc/objc.h>
#include <objc/Protocol.h>
@protocol MyProtocol
- (oneway void) methodA;
@end
@interface MyObject <MyProtocol>
@end
@implementation MyObject
- (oneway void) methodA
{
}
@end
int main (void)
{
MyObject *object = nil;
[object methodA];
exit (0);
}
/*
* Contributed by Nicola Pero <n.pero@mi.flashnet.it>
* Tue Sep 19 4:34AM
*/
#include <objc/objc.h>
#include <objc/Protocol.h>
@protocol MyProtocol
+ (oneway void) methodA;
@end
@interface MyObject <MyProtocol>
@end
@implementation MyObject
+ (oneway void) methodA
{
printf ("methodA\n");
}
@end
int main (void)
{
[MyObject methodA];
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment