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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [operator2.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
typedef int INT_TYPEDEF;
2
 
3
template
4
class TypedIfc
5
{
6
public:
7
  virtual ~TypedIfc() { }
8
  virtual operator const T&() const = 0;
9
  virtual const T& operator= (const T& t) = 0;
10
};
11
 
12
template
13
class NullIfc : public TypedIfc
14
{
15
public:
16
  const Tnative& operator= (const Tnative& t) { return t; }
17
  operator const Tnative&() const { return *(Tnative *)0; }
18
};
19
 
20
typedef TypedIfc INT_TYPEDEFIfc;
21
 
22
NullIfc i32;

powered by: WebSVN 2.1.0

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