]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/loop-40.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loop-40.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ch2-details" } */
3
4 int mymax2(int *it, int *end)
5 {
6 int max = *it;
7 while (++it != end)
8 if (*it > max)
9 max = *it;
10 return max;
11 }
12
13 /* { dg-final { scan-tree-dump "Duplicating header" "ch2" } } */