blob: 7f046be81f6d790fcceda421288fb777549820a5 [file] [log] [blame]
John McCall5fb5df92012-06-20 06:18:46 +00001// 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
Paul Robinsone9492f72016-12-09 01:20:40 +00002// RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"id=struct objc_object*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
Fariborz Jahanian74405b02011-02-24 21:29:21 +00003// rdar:// 9039342
4
5void *sel_registerName(const char *);
6void 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