This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: unclaimed-category-1.m (RFA Objc test patch)
- From: Stan Shebs <shebs at apple dot com>
- To: Nicola Pero <nicola at brainstorm dot co dot uk>
- Cc: Richard Henderson <rth at redhat dot com>, gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Jan 2002 10:30:26 -0800
- Subject: Re: unclaimed-category-1.m (RFA Objc test patch)
- References: <Pine.LNX.4.21.0201101413360.25270-100000@nicola.brainstorm.co.uk>
Nicola Pero wrote:
>
> > This fails on alpha because of a warning here:
> >
> > warning: cast to pointer from integer of different size
> > test = (TestClass *)(class_create_instance (testClass));
> >
> > Seems like there should be a prototype somewhere?
>
> Thanks ... looks like the problem is that I forgot to include
> <objc/objc-api.h>. :-)
>
> Stan - Ok to apply the following (obvious) patch ?
Go for it. Something like this is OK to check in directly BTW,
especially considering that you wrote the test!
Stan
> Index: unclaimed-category-1.m
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/testsuite/objc.dg/special/unclaimed-category-1.m,v
> retrieving revision 1.1
> diff -u -r1.1 unclaimed-category-1.m
> --- unclaimed-category-1.m 2001/12/17 17:27:08 1.1
> +++ unclaimed-category-1.m 2002/01/10 14:17:45
> @@ -1,6 +1,7 @@
> /* Contributed by Nicola Pero - Fri Dec 14 08:36:00 GMT 2001 */
> /* { dg-do run } */
> #include <objc/objc.h>
> +#include <objc/objc-api.h>
> #include <objc/Object.h>
>
> /* Test loading unclaimed categories - categories of a class defined