]> granicus.if.org Git - clang/commitdiff
Added test case for non-objective-c situation in
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 24 Feb 2010 22:53:58 +0000 (22:53 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 24 Feb 2010 22:53:58 +0000 (22:53 +0000)
my last patch.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97075 91177308-0d34-0410-b5e6-96231b3b80d8

test/Rewriter/rewrite-nested-blocks.mm

index deb0ee59046bc6d6685dea7106013a1a7c686699..95a16bdbb3981355183f3a6d328b8aa443cae909 100644 (file)
@@ -24,3 +24,15 @@ void f(void (^block)(void));
 }
 @end
 
+struct S {
+  int y;
+};
+
+void foo () {
+       struct S *SELF;
+       f(^{
+               f(^{
+                       SELF->y = 42;
+               });
+       });
+}