Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/lambda-generic5.C

raw
1 // P0428R2
2 // { dg-do compile }
3 // { dg-options "-std=c++2a" }
4
5 int j = []<class T>(T t, int i) { return i; }(3, 4);
6 // { dg-bogus "lambda templates are only available with" "" { target c++20 } .-1 }