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
7 typedef unsigned long size_t;
8 void *sel_registerName(const char *);
10 extern "C" void nowarn(id);
12 extern "C" void noblockwarn(void (^)());
15 @property (readwrite, retain) INTFOFPROP *outer;
16 @property (readwrite, retain) id inner;
20 - (NSSet *)objectsPassingTest:(char (^)(id obj, char *stop))predicate ;
35 nowarn(ace.outer.inner);
38 nowarn(ace.outer.inner);
44 nowarn(ace.outer.inner);
47 return [aces objectsPassingTest:^(id obj, char *stop)
49 INTFOFPROP *ace = (INTFOFPROP *)obj;
50 nowarn(ace.outer.inner);