forked from OSchip/llvm-project
10 lines
214 B
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}}
|
||
|
}
|