Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr40971.c
blob4317638e7bdd0fb321834cd61b762491a743bfa4
1 /* PR target/40971 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fstack-protector -fno-strict-aliasing" } */
4 /* { dg-require-effective-target fstack_protector } */
5 /* { dg-require-effective-target size20plus } */
7 extern void bar (char *);
9 void
10 foo (int f, long a)
13 char d[32768];
14 bar (d);
16 double b = f;
17 while (a)
19 char c[sizeof (double)];
20 __builtin_memcpy (c, &b, sizeof (c));
21 if (*(double *) c != 2.0)
22 break;