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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr36766.C] - Diff between revs 301 and 338

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;
}
}
 
 

powered by: WebSVN 2.1.0

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