* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / partial-spec6.C
blobaf4411baae582792492f674555864faa502fe358
1 // PR c++/67152
2 // { dg-options "-std=c++17 -fconcepts" }
4 template <class T>
5 concept bool HasType = requires { typename T::type; };
7 template<class T>
8 struct trait {
9   using type = void;
12 struct has_type { using type = void; };
14 // Instantiation here
15 trait<has_type>::type foo() {}
17 // constrained version here. Type "has_type" would fail this
18 // constraint so this partial specialization would not have been
19 // selected.
20 template<class T>
21   requires !HasType<T>
22 struct trait<T> {
23   using type = void;