aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/overload9.C
blob: bd9eeb1791a4445d8af6a9f9f921b7b51d56eb29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
template <class T>
int f(T)
{
  return 1;
}


template <class T>
int f(T*)
{
  return 0;
}


int main()
{
  int (*h)(int*) = &f;
  int (&k)(int*) = f;

  return (*h)(0) || (*k)(0);
}