(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr49948.c
       1  /* PR tree-optimization/49948 */
       2  /* { dg-do compile } */
       3  /* { dg-require-effective-target pthread } */
       4  /* { dg-options "-O3 -ftree-parallelize-loops=2" } */
       5  
       6  extern int a, *b;
       7  int
       8  foo (void)
       9  {
      10    int c, d = 8, *e[8], i;
      11    if (a <= 7)
      12      {
      13        for (i = 0; i < 8; ++i)
      14  	e[i] = &c;
      15        while (--d)
      16  	{
      17  	  a = 0;
      18  	  b = e[0];
      19  	}
      20        return 0;
      21      }
      22    return b == &d;
      23  }