(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr40971.c
       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 } */
       6  
       7  extern void bar (char *);
       8  
       9  void
      10  foo (int f, long a)
      11  {
      12    {
      13      char d[32768];
      14      bar (d);
      15    }
      16    double b = f;
      17    while (a)
      18      {
      19        char c[sizeof (double)];
      20        __builtin_memcpy (c, &b, sizeof (c));
      21        if (*(double *) c != 2.0)
      22  	break;
      23      }
      24  }