// RUN: %clang_cc1 -fsyntax-only -Wno-strict-prototypes -verify %s -fblocks
void ;
;
;
int
int
int^ x; // expected-error {{block pointer to non-function type is invalid}}
int^^ x1; // expected-error {{block pointer to non-function type is invalid}} expected-error {{block pointer to non-function type is invalid}}
void
;
int
void ;
// rdar://6257721 - reference to static/global is byref by default.
static int test5g;
void
// rdar://6405429 - __func__ in a block refers to the containing function name.
const char*
// radr://6732116 - block comparisons
;
int
void
void
void
void
;
void
// rdar://6808730
void *test13 = ^;
void
;
void
;
void
__block int test16i; // expected-error {{__block attribute not allowed, only allowed on local variables}}
void
void ;
void
void
// rdar://7072507
int
// radr://7438948
void
// radr://7438948
void
// rdar ://8218839
const char * = ^;
const char * = ^;
const char * = ^;