1 // { dg-options "-std=c++17 -fconcepts" }
4 concept bool Class() { return __is_class(T); }
7 concept bool Union() { return __is_union(T); }
9 // Check non-overlapping specializations
10 template<typename T> struct S1 { static const int value = 0; };
11 template<Class T> struct S1<T> { static const int value = 1; };
12 template<Union T> struct S1<T> { static const int value = 2; };
17 static_assert(S1<int>::value == 0, "");
18 static_assert(S1<S>::value == 1, "");
19 static_assert(S1<U>::value == 2, "");