1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
16 - (void)foo:(F *)arg {
17 int q = arg->supervar;
18 int v = ((G *)arg)->ivar;
22 void objc_assign_strongCast(id);
23 void __CFAssignWithWriteBarrier(void **location, void *value) {
24 objc_assign_strongCast((id)value);
27 @interface RealClass {
33 @implementation RealClass
43 ((RealClass*)reserved)->f = 99;