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
4 void *sel_registerName(const char *);
12 @property(readonly) int rrrr;
14 @property(retain) Foo *o;
41 static int func(int i) { return 0; }
46 if (obj1.i == obj2.rrrr)
48 obj1.i = func(obj2.rrrr);
51 [obj1 setI:[obj2 rrrr]];
53 obj1.i = 3 + [obj2 rrrr];