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

template<typename T, typename U>
constexpr bool is_same_v = __is_same (T, U);

static_assert(is_same_v<bool, decltype(requires { requires false; })>);
// { dg-bogus "evaluated to 'false" "" { target *-*-* } .-1 }