c++: Fix get_member_function_from_ptrfunc with -fsanitize=bounds [PR116449]
[official-gcc.git] / gcc / testsuite / gcc.dg / pr41488.c
blob1e4bf19c7da947a134be00864ed244a089d09ec6
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-ivcanon-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 "ivcanon" } } */