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 b2d4fd8229..efe021efb8 100644
--- a/test/Sema/block-misc.c
+++ b/test/Sema/block-misc.c
@@ -113,3 +113,8 @@ void test11(int i) {
}
+void (^test12f)(void);
+void test12() {
+ test12f = ^test12f; // expected-error {{type name requires a specifier or qualifier}} expected-error {{expected expression}}
+}
+