Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec6.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 // { dg-do compile { target c++2a } } |
2 | |
3 template<typename T> | |
4 struct A { | |
5 template<class T2> void f1(T, T2); // member template | |
6 template<class T2> void f2(T, T2); // member template | |
7 }; | |
8 | |
9 template<> | |
10 template<class X1> void A<int>::f1(int, X1); | |
11 | |
12 // Specialization with template-id | |
13 template<> | |
14 template<> void A<int>::f2<char>(int, char); | |
15 | |
16 // Specialization with deduction | |
17 template<> | |
18 template<> void A<int>::f1(int, char); |