aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/nested2.C
blob: ce52b4e5ceaa520d480e7a99460d7571d1b1d14b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link:
// Origin: Mathias Doreille <Mathias.Doreille@imag.fr>

template<class T>
struct  a {
  struct b {
    T operator()();
  };
};


template<class T>
T a<T>::b::operator()() { return T(0); }

template<> int a<int>::b::operator()() { return 1; }