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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit26.C
blob
ba50fac1c4f806896d8a0114987b9bf6f03457c0
1
// { dg-do link }
2
// GROUPS passed templates
3
template <class T>
4
int foo(T t) { return 1; }
5
6
template <>
7
int foo(int i) { return 0; }
8
9
int main()
10
{
11
(int (*)(int)) &foo<int>;
12
}