PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr79354.c
blobc196155e741e23d41c822ec25cb8e8f93ec5073d
1 /* PR target/79354 */
3 int b, f, g;
4 float e;
5 unsigned long d;
7 __attribute__((noinline, noclone)) void
8 foo (int *a)
10 for (g = 0; g < 32; g++)
11 if (f)
13 e = d;
14 __builtin_memcpy (&b, &e, sizeof (float));
15 b = *a;
19 int
20 main ()
22 int h = 5;
23 f = 1;
24 asm volatile ("" : : : "memory");
25 foo (&h);
26 asm volatile ("" : : : "memory");
27 foo (&b);
28 asm volatile ("" : : : "memory");
29 return 0;