2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / overload6.C
blobc7a4e2994a27dc539966239df42c5e2f3cc722a0
1 // { dg-do run  }
2 // Check that foo<int> isn't resolved too early.
4 template <class T> void foo(T*);
5 template <class T, class U> void foo(T*, U) { }
7 template <class T, class U> void bar(void (*)(T, U), U) { }
9 int main() {
10   bar<int*>(&foo, 1);
11   bar<int*>(&foo<int>, 1);  
12   bar<int*>(foo, 1);
13   bar<int*>(foo<int>, 1);