1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
2 // RUN: FileCheck -check-prefix CHECK-LP --input-file=%t-rw.cpp %s
17 - (void)foo:(F *)arg {
18 int q = arg->supervar;
19 int v = ((G *)arg)->ivar;
23 void objc_assign_strongCast(id);
24 void __CFAssignWithWriteBarrier(void **location, void *value) {
25 objc_assign_strongCast((id)value);
29 @interface RealClass {
35 @implementation RealClass
45 ((RealClass*)reserved)->f = 99;
49 // CHECK-LP: ((struct G_IMPL *)arg)->ivar
51 // CHECK-LP: objc_assign_strongCast((id)value)
53 // CHECK-LP: ((struct RealClass_IMPL *)((RealClass *)((struct Foo_IMPL *)self)->reserved))->f