Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-requires27.C

raw
1 // PR c++/82110
2 // { dg-do compile { target c++20 } }
3
4 struct X { X() = delete; };
5
6 template<class T> concept C = requires(T t) { new T; };
7 template<class T> concept D = requires(T t) { new T[1]; };
8
9 static_assert(!C<X>);
10 static_assert(!D<X>);