modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/pr79386.c (about)

     1  /* PR rtl-optimization/79386 */
     2  
     3  int a, b;
     4  
     5  int
     6  foo (int x)
     7  {
     8    int c;
     9    int *d, *e;
    10  
    11    if (b == 0)
    12      {
    13        c = 0;
    14        e = &b;
    15        d = &b;
    16      }
    17    else
    18      {
    19        int f;
    20  
    21        c = 1;
    22        for (f = 0; f < 9; ++f)
    23  	c *= 3;
    24        e = (int *) (__UINTPTR_TYPE__) c;
    25        d = &x;
    26      }
    27    *e = c < 3;
    28    if (*e != 0)
    29      {
    30        int g;
    31  
    32        b += (a != 0) ? a : 1;
    33        if (g != 0 || x != 0)
    34  	*d = 0;
    35        if (b >= 0)
    36  	{
    37  	  if (g != 0)
    38  	    g = x;
    39  	  if (*d / g != 0)
    40  	    for (;;)
    41  	      ;
    42  	}
    43      }
    44  
    45    return b * (a != 0 && *d != 0);
    46  }