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:
parent
92664c058d
commit
4e1aaf32dd
9
gcc/testsuite/g++.dg/cpp2a/concepts-uneval3.C
Normal file
9
gcc/testsuite/g++.dg/cpp2a/concepts-uneval3.C
Normal 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>;
|
Loading…
x
Reference in New Issue
Block a user