1 #import <Foundation/Foundation.h>
2 #include <TargetConditionals.h>
15 @interface ThingSummer : NSObject {
17 -(int)sumThings:(struct things_to_sum)tts;
20 @implementation ThingSummer
21 -(int)sumThings:(struct things_to_sum)tts
23 return tts.a + tts.b + tts.c;
31 ThingSummer *summer = [ThingSummer alloc];
32 struct things_to_sum tts = { 2, 3, 4 };
33 int ret = [summer sumThings:tts];
34 NSRect rect = {{0, 0}, {10, 20}};
35 // The Objective-C V1 runtime won't read types from metadata so we need
36 // NSValue in our debug info to use it in our test.
37 NSValue *v = [NSValue valueWithRect:rect];
38 return rect.origin.x; // Set breakpoint here.