blob: c6279de5e1ddad76669c0d581206422d9e7c13ae [file] [log] [blame]
Fariborz Jahanianf89c4272010-02-26 19:55:31 +00001// 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"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
3// radar 7692350
4
5void f(void (^block)(void));
6
7@interface X {
8 int y;
9}
10- (void)foo;
11@end
12
13@implementation X
14- (void)foo {
15 __block int kerfluffle;
16 f(^{
17 f(^{
18 y = 42;
19 kerfluffle = 1;
20 });
21 });
22}
23@end