aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/explicit2.C
blob: 79941cd8ed5ab5118fdbc791ed014f6d92c23085 (plain)
1
2
3
4
5
6
7
8
9
10
struct X {
  template <class B> void foo(B);
};

template <class D>
void bar() {
  X().foo<D>(1);
}

template void bar<int> ();