llvm-project/clang/test/Sema/block-syntax-error.c

8 lines
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}}
}