diff options
Diffstat (limited to 'test/Rewriter/rewrite-block-pointer.mm')
-rw-r--r-- | test/Rewriter/rewrite-block-pointer.mm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Rewriter/rewrite-block-pointer.mm b/test/Rewriter/rewrite-block-pointer.mm index abb2f13..d010a22 100644 --- a/test/Rewriter/rewrite-block-pointer.mm +++ b/test/Rewriter/rewrite-block-pointer.mm @@ -88,3 +88,20 @@ void test8608902() { ppp(1, 0); } +void test9204669() { + __attribute__((__blocks__(byref))) char (^addChangeToData)(); + + addChangeToData = ^() { + return 'b'; + }; + addChangeToData(); +} + +void test9204669_1() { + __attribute__((__blocks__(byref))) void (^addChangeToData)(); + + addChangeToData = ^() { + addChangeToData(); + }; +} + |