summaryrefslogtreecommitdiff
path: root/clang/test/Rewriter/rewrite-block-ivar-call.mm
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Rewriter/rewrite-block-ivar-call.mm')
-rw-r--r--clang/test/Rewriter/rewrite-block-ivar-call.mm12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Rewriter/rewrite-block-ivar-call.mm b/clang/test/Rewriter/rewrite-block-ivar-call.mm
new file mode 100644
index 0000000..2ec27b3
--- /dev/null
+++ b/clang/test/Rewriter/rewrite-block-ivar-call.mm
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -x objective-c++ -fblocks -rewrite-objc -fobjc-fragile-abi -o - %s
+
+@interface Foo {
+ void (^_block)(void);
+}
+@end
+
+@implementation Foo
+- (void)bar {
+ _block();
+}
+@end