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=struct objc_object*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
4 void *sel_registerName(const char *);
5 void objc_enumerationMutation(id);
11 @implementation MyList
12 - (unsigned int)countByEnumeratingWithState: (struct __objcFastEnumerationState *)state objects: (id *)items count:(unsigned int)stackcount
16 - (id) allKeys { return 0; }
19 @interface MyList (BasicTest)
20 - (void)compilerTestAgainst;
24 @implementation MyList (BasicTest)
25 - (void)compilerTestAgainst {
28 for (el in [el allKeys]) {
29 for (i = 0; i < 10; i++)
40 for (id el1 in[el allKeys]) {