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

We correctly accept this testcase since r11-8144.

gcc/testsuite/ChangeLog:

	PR c++/94508
	* g++.dg/cpp2a/concepts-uneval3.C: New test.
This commit is contained in:
Patrick Palka 2021-04-22 17:47:02 -04:00
parent 92664c058d
commit 4e1aaf32dd

View File

@ -0,0 +1,9 @@
// PR c++/94508
// { dg-do compile { target c++20 } }
template <class T>
struct A {
void f() requires (this, true) { }
};
template struct A<int>;