1 /* Contributed by Nicola Pero - Thu Mar 8 16:27:46 CET 2001 */
3 #include <objc/objc-api.h>
4 #include <objc/Object.h>
6 /* Test that by using -> we can access ivars of other objects of the same
9 @interface TestClass : Object
14 - (int) setValue: (int)number;
15 - (void) takeValueFrom: (TestClass *)object;
18 @implementation TestClass : Object
26 - (int) setValue: (int)number
30 - (void) takeValueFrom: (TestClass *)object
32 value = object->value;
49 if ([b value] != [a value])