1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
10 struct a *malloc1(__SIZE_TYPE__) __attribute__((malloc));
15 struct a *a = malloc1(sizeof(struct a));
16 struct a *b = malloc1(sizeof(struct a));
17 struct a *c = malloc1(sizeof(struct a));
20 for (i = 0; i < 256; i++)
25 for (i = 0; i < 256; i++)
27 a->a1[i] = b->a1[i] + c->a1[i];
34 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
35 /* { dg-final { cleanup-tree-dump "vect" } } */