summaryrefslogtreecommitdiff
path: root/test/Sema/block-return.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/block-return.c')
-rw-r--r--test/Sema/block-return.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Sema/block-return.c b/test/Sema/block-return.c
index 4240b0985625a..6416545cb7ea3 100644
--- a/test/Sema/block-return.c
+++ b/test/Sema/block-return.c
@@ -76,6 +76,7 @@ static int funk(char *s) {
else
return 0;
}
+void next();
void foo4() {
int (^xx)(const char *s) = ^(char *s) { return 1; }; // expected-error {{incompatible block pointer types initializing 'int (^)(char *)', expected 'int (^)(char const *)'}}
int (*yy)(const char *s) = funk; // expected-warning {{incompatible pointer types initializing 'int (char *)', expected 'int (*)(char const *)'}}