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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20100519-1_0.C] - Rev 774

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-lto-do link }

template <typename Ordinal>
struct DirectSerializationTraits
{
  static void fromCountToDirectBytes(const Ordinal count) {}
};
template<typename Ordinal> class SerializationTraits
  : public DirectSerializationTraits<Ordinal> { };
template <typename Ordinal>
class ConstValueTypeSerializationBuffer
{
public:
    ConstValueTypeSerializationBuffer(const Ordinal count)
      {
        typedef SerializationTraits<Ordinal> SerT;
        SerT::fromCountToDirectBytes(count);
      }
};
int main ()
{
  ConstValueTypeSerializationBuffer<int> charSendBuffer(1);
}

Go to most recent revision | 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.