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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr17902.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-options "-O3" } */
2
/* { dg-do compile } */
3
 
4
void foo();
5
struct A { ~A(){ foo(); } };
6
struct B { A a; };
7
void bar()
8
{
9
    A a;
10
    bool b = false;
11
    int i, j;
12
 
13
 
14
    for (j=0; j
15
    {
16
        if (i) b=true;
17
        if (j && i) foo();
18
        if (j && i) i++;
19
    }
20
 
21
 
22
    for (j=0; j
23
        if ( !j || (j==1 && b && i) )
24
            B x;
25
}
26
 

powered by: WebSVN 2.1.0

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