summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/overload4.C
blob: 3dcb39704d7e056d0c41cc9e4f91626473936213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }

template <class T> void foo(T);

template <class T> void bar(void (*)(T), T);

void baz() {
  bar<int>(foo, 1);
  bar(foo<int>, 1);
  bar<int>(foo<int>, 1);
  bar(foo, 1); 
}