1 /* Contributed by Nicola Pero - Thu Mar 8 16:27:46 CET 2001 */
3 #ifndef __NEXT_RUNTIME__
4 #include <objc/objc-api.h>
6 #include "../../objc-obj-c++-shared/Object1.h"
8 /* Test that by using -> we can access ivars of other objects of the same
11 @interface TestClass : Object
16 - (int) setValue: (int)number;
17 - (void) takeValueFrom: (TestClass *)object;
20 @implementation TestClass : Object
28 - (int) setValue: (int)number
32 - (void) takeValueFrom: (TestClass *)object
34 value = object->value;
51 if ([b value] != [a value])
58 #include "../../objc-obj-c++-shared/Object1-implementation.h"