Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / pr80308.c
blobbcfa6ae4ab4f7c23b8377f14dcea01f07040afa5
1 /* PR sanitizer/80308 */
2 /* { dg-do run } */
4 __attribute__((noinline, noclone)) int
5 foo (char *a)
7 int i, j = 0;
8 asm volatile ("" : "+r" (a) : : "memory");
9 for (i = 0; i < 12; i++)
10 j += a[i];
11 return j;
14 int
15 main ()
17 int i, j = 0;
18 for (i = 0; i < 4; i++)
20 char a[12];
21 __builtin_memset (a, 0, sizeof (a));
22 j += foo (a);
24 return j;