// { dg-do compile { target c++17 } } // { dg-options "-fconcepts" } template concept bool Nothrow_assignable() { return __has_nothrow_assign(T); } template concept bool Nothrow_constructible() { return __has_nothrow_constructor(T); } template concept bool Nothrow_copyable() { return __has_nothrow_copy(T); } template concept bool Trivially_assignable() { return __has_trivial_assign(T); } template concept bool Trivially_constructible() { return __has_trivial_constructor(T); } template concept bool Trivially_copyable() { return __has_trivial_copy(T); } template concept bool Trivially_destructible() { return __has_trivial_destructor(T); } template concept bool Dynamically_destructible() { return __has_virtual_destructor(T); } template concept bool Abstract() { return __is_abstract(T); } template concept bool Polymorphic() { return __is_polymorphic(T); } template concept bool Class() { return __is_class(T); } template concept bool Empty() { return __is_empty(T); } template concept bool Enum() { return __is_enum(T); } template concept bool Final() { return __is_final(T); } template concept bool Literal_type() { return __is_literal_type(T); } template concept bool Pod() { return __is_pod(T); } template concept bool Standard_layout() { return __is_standard_layout(T); } template concept bool Trivial() { return __is_trivial(T); } template concept bool Union() { return __is_union(T); } template void f1(); template void f2(); template void f3(); template void f4(); template void f5(); template void f6(); template void f7(); template void f8(); template void f9(); template void f10(); template void f11(); template void f12(); template void f13(); template void f14(); template void f15(); template void f16(); template void f17(); template void f18(); int main() { f1(); // { dg-error "cannot call" } f2(); // { dg-error "cannot call" } f3(); // { dg-error "cannot call" } f4(); // { dg-error "cannot call" } f5(); // { dg-error "cannot call" } f6(); // { dg-error "cannot call" } f7(); // { dg-error "cannot call" } f8(); // { dg-error "cannot call" } f9(); // { dg-error "cannot call" } f10(); // { dg-error "cannot call" } f11(); // { dg-error "cannot call" } f12(); // { dg-error "cannot call" } f13(); // { dg-error "cannot call" } f14(); // { dg-error "cannot call" } f15(); // { dg-error "cannot call" } f16(); // { dg-error "cannot call" } f17(); // { dg-error "cannot call" } }