1 // RUN: %clang_cc1 -fms-extensions -rewrite-objc -x objective-c++ -fblocks -o - %s
4 extern "C" __declspec(dllexport) void BreakTheRewriter(int i) {
5 __block int aBlockVariable = 0;
6 void (^aBlock)(void) = ^ {
11 __block int bbBlockVariable = 0;
12 void (^aBlock)(void) = ^ {
18 __declspec(dllexport) extern "C" __declspec(dllexport) void XXXXBreakTheRewriter(void) {
20 __block int aBlockVariable = 0;
21 void (^aBlock)(void) = ^ {
25 void (^bBlocks)(void) = ^ {
34 // $CLANG -cc1 -fms-extensions -rewrite-objc -x objective-c++ -fblocks bug.mm
35 // g++ -c -D"__declspec(X)=" bug.cpp