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

template <class T>
concept CanDifference = requires(T x, T y) {
    x - y;
};

static_assert(!CanDifference<void*>);