comparison clang/test/PCH/no-escaping-block-tail-calls.h @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
1 typedef int (^BlockTy)(void);
2
3 struct S0 {
4 int a;
5 };
6
7 struct 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 };