// { dg-do run } // { dg-options "-std=c++1z -fconcepts" } #include #include template concept bool C1 = __is_class(T); template concept bool C2() { return __is_class(T); } template concept bool C3() { return requires (T a) { ++a; }; } int main() { if (C1) assert(false); if (C2()) assert(false); if (!C3()) assert(false); }