summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/lambda-uneval7.C
blob: efe3691d8c9ee390f4d21683ef7959edb11bdc0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile { target c++20 } }

template <int N>
struct A { };

template <int N>
void g(A<[]{return N;}()>) {}

int main()
{
  g<1>({});
}