1 // RUN: %clang_cc1 -triple i686-pc-windows -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 -triple i686-pc-windows -fsyntax-only -fms-extensions -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
3 // RUN: %clang_cc1 -triple i686-pc-windows -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp
4 // RUN: %clang_cc1 -triple i686-pc-windows -fsyntax-only -fms-extensions -Wno-address-of-temporary -Did="void *" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp
6 typedef unsigned long size_t;
7 void *sel_registerName(const char *);
9 extern "C" void nowarn(id);
11 extern "C" void noblockwarn(void (^)());
14 @property (readwrite, retain) INTFOFPROP *outer;
15 @property (readwrite, retain) id inner;
19 - (NSSet *)objectsPassingTest:(char (^)(id obj, char *stop))predicate ;
34 nowarn(ace.outer.inner);
37 nowarn(ace.outer.inner);
43 nowarn(ace.outer.inner);
46 return [aces objectsPassingTest:^(id obj, char *stop)
48 INTFOFPROP *ace = (INTFOFPROP *)obj;
49 nowarn(ace.outer.inner);