1 // RUN: %clang_cc1 -E %s -o %t.mm
2 // RUN: %clang_cc1 -fblocks -rewrite-objc -fms-extensions %t.mm -o %t-rw.cpp
3 // RUN: FileCheck --input-file=%t-rw.cpp %s
4 // RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -Wno-c++11-narrowing -std=c++11 -D"Class=void*" -D"id=void*" -D"SEL=void*" -U__declspec -D"__declspec(X)=" %t-rw.cpp
16 struct S *pstruct_ivar;
21 - (struct S) dMeth{ return struct_ivar; }
24 // CHECK: return (*(struct S *)((char *)self + OBJC_IVAR_$_I$struct_ivar));
51 // CHECK: (*(decltype(((Foo_IMPL *)0U)->bar) *)((char *)self + OBJC_IVAR_$_Foo$bar)).x = 0;
52 // CHECK: (*(struct _S *)((char *)self + OBJC_IVAR_$_Foo$s)).x = 0;