* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / variadic2.C
blob2b64a62edef39331979c01dffe0045aca46520c3
1 // { dg-options "-std=c++17 -fconcepts" }
3 template <class T> concept bool Copyable = requires (T t) { T(t); };
4 template <class T> concept bool Constructable = requires { T(); };
5 template <class T> concept bool Both = Copyable<T> && Constructable<T>;
7 template <Copyable... Ts>
8 constexpr int f(Ts...) { return 0; } // #1
10 template <Both... Ts>
11 constexpr int f(Ts...) { return 1; }     // #2
13 int main()
15   static_assert(f(42) == 1);