(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr91445.c
       1  /* { dg-do run } */
       2  
       3  struct S { _Bool x; };
       4  
       5  void
       6  foo (struct S *s)
       7  {
       8    __builtin_memset (s, 0x11, sizeof (struct S));
       9    s->x = 1;
      10  }
      11  
      12  int
      13  main ()
      14  {
      15    struct S s;
      16    foo (&s);
      17    char c;
      18    __builtin_memcpy (&c, &s.x, 1);
      19    if (c != 1)
      20      __builtin_abort ();
      21    return 0;
      22  }