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

10 lines
214 B
C

// RUN: clang %s -fsyntax-only -verify -fblocks
void (^noop)(void);
void somefunction() {
noop = ^int *{}; // expected-error {{expected expression}}
noop = ^noop; // expected-error {{expected expression}}
}