aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/typo-correction-blocks.c
blob: 300a5be3969daa9835eb6863fdb641a464bb7f2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -triple i386-apple-macosx -fblocks -fsyntax-only -verify %s

extern int h(int *);
extern void g(int, void (^)(void));
extern int fuzzys;                  // expected-note {{'fuzzys' declared here}}

static void f(void *v) {
  g(fuzzy, ^{                       // expected-error {{did you mean 'fuzzys'}}
    int i = h(v);
  });
}