1/* { dg-do compile } */
2/* { dg-options "-O2 -fdump-tree-profile_estimate" } */
3
4int g;
5int foo();
6void test() {
7  while (foo() && (g < 10 || g > 20))
8    g++;
9  return;
10}
11
12/* { dg-final { scan-tree-dump-times "loop exit heuristics:" 3 "profile_estimate"} } */
13/* { dg-final { cleanup-tree-dump "profile_estimate" } } */
14