1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp 2 // RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp 3 // rdar:// 9039342 4 5 void *sel_registerName(const char *); 6 void objc_enumerationMutation(id); 7 8 @protocol CoreDAVLeafDataPayload @end 9 10 @class NSString; 11 12 @interface CoreDAVAction 13 - (id) context; 14 @end 15 16 @interface I 17 { 18 id uuidsToAddActions; 19 } 20 @end 21 22 @implementation I 23 - (void) Meth { 24 for (id<CoreDAVLeafDataPayload> uuid in uuidsToAddActions) { 25 CoreDAVAction *action = 0; 26 id <CoreDAVLeafDataPayload> payload = [action context]; 27 } 28 } 29 @end 30