Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / objc / execute / bycopy-2.m
blobdce028152a96fe459b5c10ccbfbfa3610cf0408f
1 /*
2  * Contributed by Nicola Pero <nicola@brainstorm.co.uk>
3  * Fri Feb  2 11:48:01 GMT 2001
4  */
6 #include <objc/objc.h>
7 #include <objc/Object.h>
8 #include <objc/Protocol.h>
10 @protocol MyProtocol
11 + (bycopy id<MyProtocol>) bycopyMethod;
12 @end
14 @interface MyObject : Object <MyProtocol> 
15 @end
17 @implementation MyObject
18 + (bycopy id<MyProtocol>) bycopyMethod
20   return [MyObject alloc];
22 @end
24 int main (void)
26   MyObject *object;
28   object = [MyObject bycopyMethod];
30    exit (0);