(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr58131.c
       1  /* PR tree-optimization/58131 */
       2  /* { dg-do compile } */
       3  
       4  short a;
       5  int b, c, d[1][4][2];
       6  
       7  void
       8  foo (void)
       9  {
      10    int *e;
      11    for (b = 1; ; b--)
      12      {
      13        if (*e)
      14  	break;
      15        for (c = 2; c >= 0; c--)
      16  	{
      17  	  *e |= d[0][3][b] != a;
      18  	  int *f = &d[0][3][b];
      19  	  *f = 0;
      20  	}
      21      }
      22  }