aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/mangle1.C
blob: 96d064723416e296d52f08be1f5183343f874fbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/17324
// { dg-do assemble }

template<int, typename T> struct A
{
  template<int I> void foo(const A<I,T>&) {}
};

template<typename> struct B
{
  template<int J> void bar(const A<J,B>&);
  void baz() { A<0,B>().foo(A<0,B>()); }
};

template struct B<void>;
template struct B<int>;