aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/lambda-__func__.C
blob: d5d1c1cb7b697c3db328458abcc5bb13f62de4e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/84925
// { dg-options "-std=c++17" }

template <typename>
struct A {
  static const int value = 0;
  static auto constexpr fn = [] { return __func__; };
};

template <typename type>
int x = A<type>::value;

auto s = x<int>;