1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ivcanon-scev" } */
3 
4 struct struct_t
5 {
6   int* data;
7 };
8 
foo(struct struct_t * sp,int start,int end)9 void foo (struct struct_t* sp, int start, int end)
10 {
11   int i;
12 
13   for (i = 0; i+start < end; i++)
14     sp->data[i+start] = 0;
15 }
16 
17 /* { dg-final { scan-tree-dump-times "Simplify PEELED_CHREC into POLYNOMIAL_CHREC" 1 "ivcanon" } } */
18