OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [canon-type-11.C] - Rev 693

Compare with Previous | Blame | View Log

// Contributed by Dodji Seketeli <dodji@redhat.com>
// { dg-do compile }

template<class T>
struct C
{
  void bar();
};

template<class T>
void
C<T>::bar()
{
}


template<class U,
         template<class TT0_T0> class TT0 = C,
         template<class TT1_T0> class TT1 = TT0>
struct S
{
  C<U> s;

  void foo(TT1<U>);

  void bar()
  {
    foo(s);
  }
};

template<class T,
         template<class TT0_T0> class TT0,
         template<class TT1_T0> class TT1>
void
S<T, TT0, TT1>::foo(TT1<T>)
{
  C<T> c;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.