Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/explicit12.C

raw
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 }