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
/
overload9.C
blob
f73acc7f2f07253645b61b0aa96cefe30647883e
1
// { dg-do run }
2
template <class T>
3
int f(T)
4
{
5
return 1;
6
}
7
8
9
template <class T>
10
int f(T*)
11
{
12
return 0;
13
}
14
15
16
int main()
17
{
18
int (*h)(int*) = &f;
19
int (&k)(int*) = f;
20
21
return (*h)(0) || (*k)(0);
22
}