Added support for the 64-bit Apple Objective-C runtime
[official-gcc.git] / gcc / testsuite / objc / execute / bycopy-2.m
blob840881f4a97f5d0235b2f07f3be56f37db560318
1 /*
2  * Contributed by Nicola Pero <nicola@brainstorm.co.uk>
3  * Fri Feb  2 11:48:01 GMT 2001
4  */
6 #include "../../objc-obj-c++-shared/Protocol1.h"
8 @protocol MyProtocol
9 + (bycopy id<MyProtocol>) bycopyMethod;
10 @end
12 @interface MyObject : Object <MyProtocol> 
13 @end
15 @implementation MyObject
16 + (bycopy id<MyProtocol>) bycopyMethod
18   return [MyObject alloc];
20 @end
22 int main (void)
24   MyObject *object;
26   object = [MyObject bycopyMethod];
28    exit (0);
30 #include "../../objc-obj-c++-shared/Object1-implementation.h"