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++.dg/] [inherit/] [operator2.C] - Diff between revs 301 and 338

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

Rev 301 Rev 338
typedef int INT_TYPEDEF;
typedef int INT_TYPEDEF;
template
template
class TypedIfc
class TypedIfc
{
{
public:
public:
  virtual ~TypedIfc() { }
  virtual ~TypedIfc() { }
  virtual operator const T&() const = 0;
  virtual operator const T&() const = 0;
  virtual const T& operator= (const T& t) = 0;
  virtual const T& operator= (const T& t) = 0;
};
};
template
template
class NullIfc : public TypedIfc
class NullIfc : public TypedIfc
{
{
public:
public:
  const Tnative& operator= (const Tnative& t) { return t; }
  const Tnative& operator= (const Tnative& t) { return t; }
  operator const Tnative&() const { return *(Tnative *)0; }
  operator const Tnative&() const { return *(Tnative *)0; }
};
};
typedef TypedIfc INT_TYPEDEFIfc;
typedef TypedIfc INT_TYPEDEFIfc;
NullIfc i32;
NullIfc i32;
 
 

powered by: WebSVN 2.1.0

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