summaryrefslogtreecommitdiff
path: root/test/CodeGen/blocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/blocks.c')
-rw-r--r--test/CodeGen/blocks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/blocks.c b/test/CodeGen/blocks.c
index a0f5dae6f44d..6888356a5a1d 100644
--- a/test/CodeGen/blocks.c
+++ b/test/CodeGen/blocks.c
@@ -27,3 +27,9 @@ void (^test1)(void) = ^(void) {
^ { i = 1; }();
};
+typedef double ftype(double);
+// It's not clear that we *should* support this syntax, but until that decision
+// is made, we should support it properly and not crash.
+ftype ^test2 = ^ftype {
+ return 0;
+};