1 /* PR middle-end/100571 - bogus -Wstringop-overflow with VLA of elements
4 { dg-options "-O2 -Wall" }
5 { dg-require-effective-target alloca } */
7 __attribute__ ((access (read_only
, 1, 2))) void fro (int *, int);
8 __attribute__ ((access (write_only
, 1, 2))) void fwo (int *, int);
9 __attribute__ ((access (read_write
, 1, 2))) void frw (int *, int);
11 extern __SIZE_TYPE__ n
;
15 int *a
= __builtin_alloca (n
* sizeof *a
);
22 int *a
= __builtin_alloca (n
* sizeof *a
);
28 int *a
= __builtin_alloca (n
* sizeof *a
);
36 int *a
= __builtin_calloc (n
, sizeof *a
);
42 int *a
= __builtin_calloc (n
, sizeof *a
);
48 int *a
= __builtin_calloc (n
, sizeof *a
);
56 int *a
= __builtin_malloc (n
* sizeof *a
);
63 int *a
= __builtin_malloc (n
* sizeof *a
);
69 int *a
= __builtin_malloc (n
* sizeof *a
);