1 #import <Foundation/Foundation.h>
3 @interface MyClass : NSObject {
8 @implementation MyClass
10 printf("%p\n", self); // break here
14 @interface MyOwner : NSObject {
15 @public id ownedThing; // should be id, to test <rdar://problem/31363513>
19 @implementation MyOwner
22 int main (int argc, char const *argv[]) {
24 MyOwner *owner = [[MyOwner alloc] init];
25 owner->ownedThing = [[MyClass alloc] init];
26 [(MyClass*)owner->ownedThing test];