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 -Wno-address-of-temporary -D__block="" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp 3 4void x(int y) {} 5void f() { 6 const int bar = 3; 7 int baz = 4; 8 __block int bab = 4; 9 __block const int bas = 5; 10 void (^b)() = ^{ 11 x(bar); 12 x(baz); 13 x(bab); 14 x(bas); 15 b(); 16 }; 17 b(); 18} 19