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
5 void *sel_registerName(const char *);
13 typedef unsigned char BOOL;
15 @interface Foo : NSObject {
21 @property BOOL field1;
22 @property BOOL field2;
27 @synthesize field1 = _field1;
28 @synthesize field2 = _field2;
34 Foo *f = (Foo*)[[Foo alloc] init];
37 f.field1 = f.field1 & f.field2;