repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Reset branch to trunk.
[official-gcc.git]
/
trunk
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit56.C
blob
f3e3ed30babf61abf72b0ce97725ca81cd50bbbc
1
// { dg-do run }
2
template <class T> T* create ();
3
4
template <class T> T* create2()
5
{
6
return create<T>();
7
}
8
9
template <class T> T* create ()
10
{
11
return new T;
12
}
13
14
int main()
15
{
16
int *p = create2<int>();
17
}