aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr103270.c
blob: 819310e360e56ac67dba6e07cb15ddc4a8c9db31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-profile_estimate" } */

void test(int a, int* i)
{
  for (; a < 5; ++a)
    {
      int b = 0;
      int c = 0;
      for (; b != -11; b--)
	for (int d = 0; d ==0; d++)
	  {
	    *i += c & a;
	    c = b;
	  }
    }
}

/* { dg-final { scan-tree-dump-not "extra loop exit heuristics of edge\[^:\]*:" "profile_estimate"} } */