Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/lambda-__func__.C

raw
1 // PR c++/84925
2 // { dg-do compile { target c++17 } }
3
4 template <typename>
5 struct A {
6 static const int value = 0;
7 static auto constexpr fn = [] { return __func__; };
8 };
9
10 template <typename type>
11 int x = A<type>::value;
12
13 auto s = x<int>;