1 /* PR tree-optimization/79972 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target alloca } */
4 /* { dg-options "-Walloca -Wvla-larger-than=10000" } */
7 f (int dim
, int *b
, int *c
)
9 int newcentroid
[3][dim
]; /* { dg-warning "unbounded use of variable-length array" } */
10 int *a
= newcentroid
[2];
12 __builtin_memcpy (newcentroid
, c
, sizeof (newcentroid
));
13 for (i
= 0; i
< dim
; i
++)
14 dist
+= (a
[i
] - b
[i
]) * (a
[i
] - b
[i
]);