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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [rtti/] [dyncast1.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
class JunkBase
2
{
3
public:
4
    virtual void DoSomething( void ) = 0;
5
protected:
6
    virtual ~JunkBase( void ) {}
7
    JunkBase( void ) {}
8
};
9
 
10
class Junk : protected JunkBase
11
{
12
public:
13
    Junk( void ) : JunkBase() {}
14
    virtual ~Junk( void ) {}
15
protected:
16
    inline JunkBase * AsBase( void )
17
    { return dynamic_cast< JunkBase * >( this ); }
18
    virtual void DoSomething( void ) { }
19
};
20
 
21
 
22
 
23
 

powered by: WebSVN 2.1.0

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