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

     1  /* This testcase failed on Alpha at -O2 when simplifying conditional
     2     expressions.  */
     3  
     4  int foo (void);
     5  
     6  struct A
     7  {
     8    int a, b, c, d;
     9  };
    10  
    11  void bar (struct A *x)
    12  {
    13    int e, f;
    14  
    15    e = foo ();
    16    e = e / x->b;
    17    if (e < 1)
    18      e = 1;
    19    f = (x->a + x->c) / e;
    20    if (f < x->d)
    21      x->d -= (1 << 16) / 8;
    22  }