1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %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 // grep "static void __FUNC_block_copy_" %t-rw.cpp | count 2 4 // rdar://8499592 5 6 void Outer(void (^bk)()); 7 void Inner(void (^bk)()); 8 void INNER_FUNC(id d); 9 10 void FUNC() { 11 12 id bar = (id)42; 13 Outer(^{ 14 Inner(^{ 15 INNER_FUNC(bar); 16 }); 17 }); 18 } 19