Clang Project

clang_source_code/test/PCH/no-escaping-block-tail-calls.h
1typedef int (^BlockTy)(void);
2
3struct S0 {
4  int a;
5};
6
7struct S {
8  int i;
9  void func(BlockTy __attribute__((noescape)));
10  int foo(S0 &);
11
12  void m() {
13    __block S0 x;
14    func(^{ return foo(x); });
15  }
16};
17