aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-requires27.C
blob: 99d45001383adb4073336e0c203f810bb8f89249 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/82110
// { dg-do compile { target c++20 } }

struct X { X() = delete; };

template<class T> concept C = requires(T t) { new T; };
template<class T> concept D = requires(T t) { new T[1]; };

static_assert(!C<X>);
static_assert(!D<X>);