URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// PR c++/12491
|
// PR c++/12491
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O2" }
|
// { dg-options "-O2" }
|
|
|
// The return statements are necessary to trigger this bug.
|
// The return statements are necessary to trigger this bug.
|
|
|
class Object
|
class Object
|
{
|
{
|
public:
|
public:
|
virtual ~Object (void) { return; }
|
virtual ~Object (void) { return; }
|
};
|
};
|
|
|
class AutoPtr
|
class AutoPtr
|
{
|
{
|
public:
|
public:
|
~AutoPtr (void) { delete m_rep; return; }
|
~AutoPtr (void) { delete m_rep; return; }
|
private:
|
private:
|
const Object *m_rep;
|
const Object *m_rep;
|
};
|
};
|
|
|
class Handle
|
class Handle
|
{
|
{
|
public:
|
public:
|
~Handle (void) { return; }
|
~Handle (void) { return; }
|
private:
|
private:
|
AutoPtr m_rep;
|
AutoPtr m_rep;
|
};
|
};
|
|
|
class HandleOf:public Handle
|
class HandleOf:public Handle
|
{
|
{
|
public:
|
public:
|
~HandleOf (void) { return; }
|
~HandleOf (void) { return; }
|
};
|
};
|
|
|
class Error
|
class Error
|
{
|
{
|
public:
|
public:
|
~Error (void);
|
~Error (void);
|
private:
|
private:
|
HandleOf m_hndl;
|
HandleOf m_hndl;
|
};
|
};
|
|
|
Error::~Error (void)
|
Error::~Error (void)
|
{
|
{
|
return;
|
return;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.