PR c/64856
[official-gcc.git] / gcc / testsuite / gcc.dg / pr41488.c
blobc4bc42832b3676f7bcd216e229ea575811ffad81
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-sccp-scev" } */
4 struct struct_t
6 int* data;
7 };
9 void foo (struct struct_t* sp, int start, int end)
11 int i;
13 for (i = 0; i+start < end; i++)
14 sp->data[i+start] = 0;
17 /* { dg-final { scan-tree-dump-times "Simplify PEELED_CHREC into POLYNOMIAL_CHREC" 1 "sccp" } } */
18 /* { dg-final { cleanup-tree-dump "sccp" } } */