1// RUN: %clang_cc1 -x objective-c -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp 2// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp 3 4typedef void (^b_t)(void); 5void a(b_t work) { } 6struct _s { 7 int a; 8}; 9struct _s *r(void); 10 11void f(void) { 12 __block struct _s *s = 0; 13 a(^{ 14 s = (struct _s *)r(); 15 }); 16} 17