This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unclaimed-category-1.m (RFA Objc test patch)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]