c++: Add testcase for already fixed PR [PR103807]

We accept this testcase since r13-806-g221acd67ca50f8.

	PR c++/103807

gcc/testsuite/ChangeLog:

	* g++.dg/cpp2a/lambda-targ1.C: New test.

(cherry picked from commit 0d0c467d216bf538faa7ceb75875e4efa73ae23f)
This commit is contained in:
Patrick Palka 2023-05-11 10:38:02 -04:00
parent 42f9b481be
commit 2aa1ab10ae

View File

@ -0,0 +1,11 @@
// PR c++/103807
// { dg-do compile { target c++20 } }
template<auto = +[]{}>
struct A { };
A x;
int main() {
A y;
}