summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit56.C
blob: f3e3ed30babf61abf72b0ce97725ca81cd50bbbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do run  }
template <class T> T* create ();

template <class T> T* create2()
{
  return create<T>();
}

template <class T> T* create ()
{
  return new T;
}

int main()
{
  int *p = create2<int>();
}