blob: 85d0d0dc44733af81451f648b6b4c00c3680a830 [file] [log] [blame]
Fariborz Jahanian42f1e652011-02-24 21:29:21 +00001// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %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
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