Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/concepts/template-parm12.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 1 // Conceptized version of template/ttp23.C |
131 | 2 // { dg-do compile { target c++17 } } |
3 // { dg-options "-fconcepts" } | |
111 | 4 |
5 template <class T> concept bool Foo = true; | |
6 | |
7 template <typename T> struct A {}; | |
8 | |
9 template <template <Foo> class P> | |
10 struct B { | |
11 template <template <Foo> class Q> | |
12 friend bool foo (const B<Q>& a); | |
13 }; | |
14 | |
15 template <template <typename> class Q> | |
16 bool foo (const B<Q>& a); | |
17 | |
18 void bar () { | |
19 B<A> a; | |
20 foo (a); | |
21 } |