(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
compile/
pr93776.c
       1  /* This used to ICE in SRA as SRA got
       2     confused by the zero signed assigment. */
       3  
       4  struct empty {};
       5  struct s { int i; };
       6  struct z
       7  {
       8    int j;
       9    struct empty e;
      10    struct s s;
      11    int k;
      12  };
      13  
      14  void bar (struct z);
      15  void baz (int);
      16  
      17  void foo (void)
      18  {
      19    struct z z, z2;
      20  
      21    z.k = 8;
      22    z2.s.i = 1;
      23    z = z2;
      24    bar (z);
      25    z.e = (struct empty) {};
      26    baz (z.k);
      27  }