☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
lambda-uneval10.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/lambda-uneval10.C
code
plain
raw
1
// PR c++/89421
2
3
template <int I = []{return 1;}()> // { dg-message "lambda" "" { target c++17_down } }
4
struct B
5
{
6
static const int i = I;
7
};
8
9
#if __cplusplus > 201703L
10
B<> b;
11
static_assert (b.i == 1);
12
#endif