Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr56661.c
blob6fdaedb31765cbd9374b459412228d21e160adf0
1 /* { dg-do run } */
3 __attribute__((noinline, noclone)) void
4 bar (int *b)
6 b[0] = b[1] = b[2] = 1;
9 __attribute__((noinline, noclone)) int
10 baz (int x)
12 if (x != 1)
13 __builtin_abort ();
16 void
17 foo (int x)
19 if (x == 0)
21 int *b = __builtin_malloc (3 * sizeof (int));
22 while (b[0])
25 else if (x == 1)
27 int i, j;
28 int *b = __builtin_malloc (3 * sizeof (int));
29 for (i = 0; i < 2; i++)
31 bar (b);
32 for (j = 0; j < 3; ++j)
33 baz (b[j]);
34 baz (b[0]);
39 int
40 main ()
42 int x = 1;
43 asm volatile ("" : "+r" (x));
44 foo (x);
45 return 0;