1 // 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 -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);
46 if (obj1.i == obj2.rrrr)
48 obj1.i = func(obj2.rrrr);
51 [obj1 setI:[obj2 rrrr]];
53 obj1.i = 3 + [obj2 rrrr];