1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-modern-rw.cpp
4 void *sel_registerName(const char *);
12 typedef unsigned char BOOL;
14 @interface Foo : NSObject {
20 @property BOOL field1;
21 @property BOOL field2;
26 @synthesize field1 = _field1;
27 @synthesize field2 = _field2;
33 Foo *f = (Foo*)[[Foo alloc] init];
36 f.field1 = f.field1 & f.field2;