Debian Codegraph @

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

raw
1 // { dg-do link }
2 // { dg-options "-ansi -pedantic-errors -w" }
3 // GROUPS passed templates
4 struct S
5 {
6 template <class T>
7 void foo(T t);
8 };
9
10 template <>
11 void S::foo<int>(int i) { }
12
13 int main()
14 {
15 S s;
16 s.foo<int>(3.0);
17 }