Sign in
gnu
/
gcc
/
a48323ff520827d38b0ca4b6af4dc87fe9e26b50
/
.
/
gcc
/
testsuite
/
g++.dg
/
predict-loop-exit-1.C
blob: c8c202e0a6ddf2e1b728d4a740ec7c00451f5713 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-profile_estimate" } */
int
g
;
int
foo
();
void
test
()
{
while
(
foo
()
&&
g
<
10
)
g
++;
return
;
}
/* { dg-final { scan-tree-dump-times "loop exit heuristics:" 3 "profile_estimate"} } */