1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-loop-distribute-patterns -fdump-tree-ldist-details" } */
3 
foo(int * p,int n)4 void foo (int *p, int n)
5 {
6   int i;
7   for (i = 0; i < n; ++i)
8     p[i] = 0;
9 }
10 
11 /* { dg-final { scan-tree-dump "generated memset zero" "ldist" } } */
12