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/] [ipa/] [20090113-1.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O3"  } */
/* { dg-options "-O3"  } */
struct S1 {
struct S1 {
 S1() { }
 S1() { }
};
};
struct S2 {
struct S2 {
 int n;
 int n;
 S1* p;
 S1* p;
 void f() {
 void f() {
   p = new S1[n = 1];
   p = new S1[n = 1];
 }
 }
};
};
struct S3 {
struct S3 {
 S2 s2;
 S2 s2;
 void g() {
 void g() {
   s2.f();
   s2.f();
 }
 }
};
};
void h() {
void h() {
 S3().g();
 S3().g();
}
}
 
 

powered by: WebSVN 2.1.0

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