(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr57026.c
       1  /* { dg-do compile } */
       2  
       3  typedef struct __jmp_buf_tag { char buf[1024]; } jmp_buf[1];
       4  extern int setjmp (jmp_buf);
       5  extern int bar (unsigned int *);
       6  extern jmp_buf *baz (void);
       7  struct C { int c1; unsigned int c2, c3, c4; };
       8  
       9  void
      10  foo (struct C *x, const int *y, unsigned int *z, unsigned int e, unsigned int g)
      11  {
      12    unsigned int d = 0;
      13    unsigned long f;
      14    setjmp (*baz ());
      15    f = d;
      16    if ((x->c1 || x->c2) && g && (!e || d >= 8))
      17      d = 16;
      18    else
      19      d = 8;
      20    if ((!x->c3 && !x->c4 || *y == 0) && !e && bar (z))
      21      *z = f;
      22  }