[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / placeholder3.C
blob44dba8b98a2cd20d553313eb449787970b11e877
1 // PR c++/66218
2 // { dg-options "-std=c++17 -fconcepts" }
4 template <class T, class U>
5 concept bool Same = __is_same_as(T, U);
7 template <class T>
8 concept bool C =
9   requires {
10     { 0 } -> Same<T>;
11   };
13 template <C c>
14 constexpr bool f() { return true; }
16 static_assert(f<double>(), ""); // { dg-error "" }
17 static_assert(f<int>(), "");