FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / overload6.C
blob10f793a8633fc54cead32d6cc66e106865720fae
1 // Check that foo<int> isn't resolved too early.
3 template <class T> void foo(T*);
4 template <class T, class U> void foo(T*, U) { }
6 template <class T, class U> void bar(void (*)(T, U), U) { }
8 int main() {
9   bar<int*>(&foo, 1);
10   bar<int*>(&foo<int>, 1);  
11   bar<int*>(foo, 1);
12   bar<int*>(foo<int>, 1);