summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/block-syntax-error.c
blob: c98f1fd2aafcf9d01713a38d5a7ec226cb7d32b5 (plain)
1
2
3
4
5
6
7
8
9
// RUN: clang %s -fsyntax-only -verify -fblocks

void (^noop)(void);

void somefunction() {
  noop = ^int *{}; // expected-error {{expected expression}}

  noop = ^noop;	// expected-error {{expected expression}}
}
OpenPOWER on IntegriCloud