* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / class5.C
blob76398609709c9e7da17358b64ce265119b96b4cf
1 // { dg-options "-std=c++17 -fconcepts" }
3 template<typename T>
4   concept bool One() { return sizeof(T) >= 4; }
6 template<typename T>
7   concept bool Two() { return One<T>() && sizeof(T) >= 8; }
9 // Check ordering of partial specializaitons
10 template<typename T>
11   struct S2 { static const int value = 0;  };
13 template<One T>
14   struct S2<T> { static const int value = 1; };
16 template<Two T>
17   struct S2<T> { static const int value = 2; };
19 struct one_type { char x[4]; };
20 struct two_type { char x[8]; };
22 static_assert(S2<char>::value == 0, "");
23 static_assert(S2<one_type>::value == 1, "");
24 static_assert(S2<two_type>::value == 2, "");
26 int main() { }