summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/overload6.C
blob: c7a4e2994a27dc539966239df42c5e2f3cc722a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do run  }
// Check that foo<int> isn't resolved too early.

template <class T> void foo(T*);
template <class T, class U> void foo(T*, U) { }

template <class T, class U> void bar(void (*)(T, U), U) { }

int main() {
  bar<int*>(&foo, 1);
  bar<int*>(&foo<int>, 1);  
  bar<int*>(foo, 1);
  bar<int*>(foo<int>, 1);  
}