Debian Codegraph @

gcc/testsuite/g++.dg/modules/lambda-10_a.H

raw
1 // PR c++/119755
2 // { dg-additional-options "-fmodule-header" }
3 // { dg-module-cmi {} }
4
5 template <typename _Out> void format(_Out) {
6 constexpr int __term = 1;
7 [&] { __term; };
8 [&] { const int outer = __term; { __term; } };
9 [&]() noexcept { __term; };
10 [&]() noexcept { const int outer = __term; { __term; } };
11 [&](auto) { int n[__term]; }(0);
12 [&](auto) noexcept { int n[__term]; }(0);
13 }
14
15 inline void vformat() {
16 format(0);
17 }