blob: ba4c48d7dcc649c3d0c3fa94b6eb93e8843b71e6 [file] [log] [blame]
// { dg-do run { target c++17_only } }
// { dg-options "-fconcepts" }
// TODO: ICE on gimplify 16?
#include <cassert>
#include <iostream>
template<typename T>
concept bool C1 = __is_class(T);
template<typename T>
concept bool C3 = requires (T a) { ++a; };
int main() {
if (C1<int>) assert(false);
if (!C3<int>) assert(false);
}