summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/nested2.C
blob: 2eb8ad5b078b7d9edb5e741fe3c1824bc2855336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// 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; }