repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr17902.C
blob
fc5b6541f8109ee939774a2a04bce23d68c17d32
1
/* { 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<i; 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<i; j++)
23
if ( !j || (j==1 && b && i) )
24
B x;
25
}
26