1 /* { dg-do compile { target c++11 } } */
2 /* { dg-options "-O3 -fdump-tree-optimized" } */
12 int ItemArray::sum_x2() const
15 for (int item : items)
22 /* We should be able to compute the number of iterations to two, unroll
23 the loop and end up with a single basic-block in sum_x2. */
24 /* { dg-final { scan-tree-dump-times "bb" 1 "optimized" } } */