aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/constexpr-lambda21.C
blob: 210726b82775517c40283b0755f23e43603da67c (plain)
1
2
3
4
5
6
7
8
9
// PR c++/85228
// { dg-do compile { target c++17 } }

template<int> struct A
{
  enum E { e = []{ return 0; }() };
};

template class A<0>;