summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr23164.C
blob: 2318a309cec42ef0b1fac56340f4dd5f278b1396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2" } */
bool f();
struct S {
    S();
    ~S();
};
void g() {
    for (;;) {
        S s1, s2, s3, s4, s5, s6;
        if (f())
            continue;
        if (f())
            return;
    }
}