Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / objc / execute / bycopy-2.m
blobb42659106b16e04ce0a3a532b4712bb4d8f9f6ea
1 /*
2  * Contributed by Nicola Pero <nicola@brainstorm.co.uk>
3  * Fri Feb  2 11:48:01 GMT 2001
4  */
5 #include <objc/objc.h>
6 #include "../../objc-obj-c++-shared/TestsuiteObject.m"
8 @protocol MyProtocol
9 + (bycopy id<MyProtocol>) bycopyMethod;
10 @end
12 @interface MyObject : TestsuiteObject <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   return 0;