aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/spec13.C
blob: f2a3a373ed76c57e7525c786057052c606cabb7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-options "-w" }

template <typename T>
struct S {
  int i;
  template <typename U> void f(U) {}
};

template<> 
template <typename U>
void S<int>::f(U) { i; }

void f() {
  S<int> s;
  s.f<int>(3);
}