URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR tree-optimization/36766
|
// PR tree-optimization/36766
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O -fnon-call-exceptions" }
|
// { dg-options "-O -fnon-call-exceptions" }
|
|
|
struct A
|
struct A
|
{
|
{
|
~A ()
|
~A ()
|
{
|
{
|
int *a = this->b;
|
int *a = this->b;
|
}
|
}
|
int *b;
|
int *b;
|
};
|
};
|
|
|
struct B : A
|
struct B : A
|
{
|
{
|
B ()
|
B ()
|
{
|
{
|
int *a = this->b;
|
int *a = this->b;
|
}
|
}
|
~B ()
|
~B ()
|
{
|
{
|
int *a = this->b;
|
int *a = this->b;
|
}
|
}
|
};
|
};
|
|
|
void
|
void
|
foo ()
|
foo ()
|
{
|
{
|
B *c = new B;
|
B *c = new B;
|
delete c;
|
delete c;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.