1// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-modern-rw.cpp 2// RUN: %clang_cc1 -fsyntax-only -Werror -Wno-address-of-temporary -U__declspec -D"__declspec(X)=" %t-modern-rw.cpp 3// rdar:// 8243071 4 5// rdar://11375908 6typedef unsigned long size_t; 7 8void x(int y) {} 9void f() { 10 const int bar = 3; 11 int baz = 4; 12 __block int bab = 4; 13 __block const int bas = 5; 14 void (^b)() = ^{ 15 x(bar); 16 x(baz); 17 x(bab); 18 x(bas); 19 b(); 20 }; 21 b(); 22} 23