OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / overload6.C
1 // { dg-do run  }
2 // Check that foo<int> isn't resolved too early.
3
4 template <class T> void foo(T*);
5 template <class T, class U> void foo(T*, U) { }
6
7 template <class T, class U> void bar(void (*)(T, U), U) { }
8
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);  
14 }