summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/init2.C
blob: b81e4be94b790930a7a67db5f962ebc3515576a2 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/9820

template <typename T> struct X {
  template<typename> static int test(...);
  template<typename> static int test(int *);

  static const int i = sizeof(X<T>::template test<int>(0));
};

template class X<int>;