aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/block-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/block-misc.c')
-rw-r--r--test/Sema/block-misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/block-misc.c b/test/Sema/block-misc.c
index 92be5b189848..ec74a630045a 100644
--- a/test/Sema/block-misc.c
+++ b/test/Sema/block-misc.c
@@ -221,3 +221,8 @@ void test21() {
(void)b[1]; // expected-error {{cannot refer to declaration with an array type inside block}}
}();
}
+
+// rdar ://8218839
+const char * (^func)(void) = ^{ return __func__; };
+const char * (^function)(void) = ^{ return __FUNCTION__; };
+const char * (^pretty)(void) = ^{ return __PRETTY_FUNCTION__; };