1 2 3 4 5 6 7 8 9 10 11 12 13
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-ch2-details" } */ int mymax2(int *it, int *end) { int max = *it; while (++it != end) if (*it > max) max = *it; return max; } /* { dg-final { scan-tree-dump "Duplicating header" "ch2" } } */