Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.pt/explicit12.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do link } |
2 // { dg-options "-ansi -pedantic-errors -w" } | |
3 // GROUPS passed templates | |
4 template <class U> | |
5 struct S | |
6 { | |
7 template <class T> | |
8 void foo(T t); | |
9 }; | |
10 | |
11 | |
12 template <> | |
13 template <> | |
14 void S<char*>::foo<int>(int) {} | |
15 | |
16 int main() | |
17 { | |
18 S<char*> s; | |
19 s.foo<int>(3.0); | |
20 } |