diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-24 22:53:58 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-24 22:53:58 +0000 |
commit | 2ce692aa829b2e15e0ab504314b9eb881eeec34f (patch) | |
tree | d8e11f6bfacbc3e065d7a525540f267bc271a003 | |
parent | 5e49b2f3e0bbc583076fe8af00dff06bcba06daf (diff) |
Added test case for non-objective-c situation in
my last patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97075 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Rewriter/rewrite-nested-blocks.mm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Rewriter/rewrite-nested-blocks.mm b/test/Rewriter/rewrite-nested-blocks.mm index deb0ee5904..95a16bdbb3 100644 --- a/test/Rewriter/rewrite-nested-blocks.mm +++ b/test/Rewriter/rewrite-nested-blocks.mm @@ -24,3 +24,15 @@ void f(void (^block)(void)); } @end +struct S { + int y; +}; + +void foo () { + struct S *SELF; + f(^{ + f(^{ + SELF->y = 42; + }); + }); +} |