Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/lambda-uneval10.C

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