2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / lambda-__func__.C
blobd1b02ef02813536f25c4ab9a9b3c6782a8f46abb
1 // PR c++/84925
2 // { dg-do compile { target c++17 } }
4 template <typename>
5 struct A {
6   static const int value = 0;
7   static auto constexpr fn = [] { return __func__; };
8 };
10 template <typename type>
11 int x = A<type>::value;
13 auto s = x<int>;