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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [explicit16.C] - Rev 699

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// GROUPS passed templates
template<int N_rank>
class Array;


template<class T>
class ArraySectionInfo {
public:
    enum { rank = 0 };
};


template<class T1>
class SliceInfo {
public:
  static const int rank = ArraySectionInfo<T1>::rank;

  typedef Array<rank> T_slice;
};

template<class T2>
typename  SliceInfo<T2>::T_slice
foo(T2 r2)
{
  return SliceInfo<T2>::T_slice();
}

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.