* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / explicit-inst3.C
blob00dee2fb2b9b87649bc3ee56f3242a89d1a2c7b0
1 // { dg-options "-std=c++17 -fconcepts" }
3 template<typename T>
4   concept bool C() { return __is_class(T); }
6 template<typename T>
7   concept bool D() { return C<T>() && __is_empty(T); }
9 struct X { };
10 struct Y { int n; };
12 template<typename T>
13   struct S {
14     void f() { }                 // #1
15     void f() requires C<T>() { } // #2
17     void g() requires C<T>() { } // #1
18     void g() requires D<T>() { } // #2
19   };
21 template void S<int>::f(); // #1
22 template void S<X>::f(); // #2
24 template void S<X>::g(); // #2
25 template void S<Y>::g(); // #1
27 int main() { }