1 #import <Foundation/Foundation.h>
3 // This should be a big enough struct that it will force
4 // the struct return convention:
5 typedef struct BigStruct {
6 float a, b, c, d, e, f, g, h, i, j, k, l;
10 @interface Simple : NSObject
15 - (void) setValue: (int) newValue;
16 - (BigStruct) getBigStruct;
19 @implementation Simple
25 - (void) setValue: (int) newValue
30 - (BigStruct) getBigStruct
32 BigStruct big_struct = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0,
33 7.0, 8.0, 9.0, 10.0, 11.0, 12.0};
40 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
41 Simple *my_simple = [[Simple alloc] init];
43 // Set a breakpoint here.
44 NSLog (@"Object has value: %d.", my_simple.value);