Debian Codegraph @

clang/test/SemaObjCXX/discarded-block-type-inference.mm

raw
1 // RUN: %clang_cc1 -std=c++23 -fsyntax-only -fobjc-arc -fblocks %s
2
3 void block_receiver(int (^)() );
4
5 int f1() {
6 if constexpr (0)
7 (block_receiver)(^{ return 2; });
8 return 1;
9 }
10
11 int f2() {
12 if constexpr (0)
13 return (^{ return 2; })();
14 return 1;
15 }