c++: change -fconcepts to mean C++20 concepts
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / template-parm12.C
blob81d08180a29dce31bf6c3447bc1a07edba360457
1 // { dg-do compile { target c++17_only } }
2 // { dg-options "-fconcepts-ts" }
3 // Conceptized version of template/ttp23.C
5 template <class T> concept bool Foo = true;
7 template <typename T> struct A {};
9 template <template <Foo> class P>
10 struct B {
11     template <template <Foo> class Q>
12     friend bool foo (const B<Q>& a);
15 template <template <typename> class Q>
16 bool foo (const B<Q>& a);
18 void bar () {
19   B<A> a;
20   foo (a);