clang-1/test/Sema/block-syntax-error.c

8 строки
215 B
C

// RUN: clang %s -fsyntax-only -verify -fblocks
void (^noop)(void);
void somefunction() {
noop = ^noop; // expected-error {{type name requires a specifier or qualifier}} expected-error {{expected expression}}
}