summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp93.C
blob: d5cba8cfa2ef4a8d2551c2467ca011fd3fdc817a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do link  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <int n> struct A { 
  template <class T> A (T t);
  template <class T> int f(T t) const; 
}; 

template <> template<class T> int A<1>::f(T t) const {return 1;} 
template <> template<class T> A<1>::A (T t) {}

int main() { 
  A<1> a (3);
  a.f(1);
  return 0; 
}