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 |
/* { dg-options "-O3" } */
|
/* { dg-options "-O3" } */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
void foo();
|
void foo();
|
struct A { ~A(){ foo(); } };
|
struct A { ~A(){ foo(); } };
|
struct B { A a; };
|
struct B { A a; };
|
void bar()
|
void bar()
|
{
|
{
|
A a;
|
A a;
|
bool b = false;
|
bool b = false;
|
int i, j;
|
int i, j;
|
|
|
|
|
for (j=0; j
|
for (j=0; j
|
{
|
{
|
if (i) b=true;
|
if (i) b=true;
|
if (j && i) foo();
|
if (j && i) foo();
|
if (j && i) i++;
|
if (j && i) i++;
|
}
|
}
|
|
|
|
|
for (j=0; j
|
for (j=0; j
|
if ( !j || (j==1 && b && i) )
|
if ( !j || (j==1 && b && i) )
|
B x;
|
B x;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.