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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ext/] [pretty.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// Test for PRETTY_FUNCTION
// Test for PRETTY_FUNCTION
class SV;
class SV;
class SVTable // : public Debug
class SVTable // : public Debug
{
{
  // It is an array to pointer to a SV.
  // It is an array to pointer to a SV.
  SV ** array;
  SV ** array;
  // This is the size of array.
  // This is the size of array.
  int maxCount;
  int maxCount;
  // This is the current element count.
  // This is the current element count.
  int count;
  int count;
  void fatal_error (const char *f, ...);
  void fatal_error (const char *f, ...);
public:
public:
  SVTable (int size, const char *d);
  SVTable (int size, const char *d);
  SVTable ();
  SVTable ();
  SVTable (const SVTable &);
  SVTable (const SVTable &);
  ~SVTable () {}
  ~SVTable () {}
};
};
SVTable::SVTable (int size, const char *d)
SVTable::SVTable (int size, const char *d)
        : maxCount (size), count (0)// , Debug (d)
        : maxCount (size), count (0)// , Debug (d)
{
{
  if (size < 0)
  if (size < 0)
  {
  {
    fatal_error ("%s: Invalid size: %d\n", __PRETTY_FUNCTION__, size);
    fatal_error ("%s: Invalid size: %d\n", __PRETTY_FUNCTION__, size);
  }
  }
  array = (SV **) new SV * [size];
  array = (SV **) new SV * [size];
  if (array == 0)
  if (array == 0)
  {
  {
    fatal_error ("%s: Failed to allocate array\n", __PRETTY_FUNCTION__);
    fatal_error ("%s: Failed to allocate array\n", __PRETTY_FUNCTION__);
  }
  }
}
}
 
 

powered by: WebSVN 2.1.0

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