URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [destruct2.C] - Rev 772
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// PRMS Id: 4342
// Bug: g++ does not massage things enough to allow calling ~X().
struct X
{
virtual ~X ();
};
struct Y : public X
{};
struct Z : public Y, public X // { dg-warning "" }
{};
void foo ()
{
Z* f = new Z;
delete f; // { dg-bogus "" }
}
Go to most recent revision | Compare with Previous | Blame | View Log