Debian Codegraph @

gcc/testsuite/g++.dg/template/spec13.C

raw
1 // { dg-options "-w" }
2
3 template <typename T>
4 struct S {
5 int i;
6 template <typename U> void f(U) {}
7 };
8
9 template<>
10 template <typename U>
11 void S<int>::f(U) { i; }
12
13 void f() {
14 S<int> s;
15 s.f<int>(3);
16 }