(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr46878-1.c
       1  /* PR rtl-optimization/46878 */
       2  /* Make sure this doesn't ICE.  */
       3  /* { dg-do compile } */
       4  /* { dg-options "-O2" } */
       5  
       6  int __foo (void);
       7  int __bar (void);
       8  
       9  struct baz
      10  {
      11    int *newp;
      12  };
      13  
      14  int
      15  get_ice (int *op, struct baz *ret)
      16  {
      17    int *tmpp;
      18    int c;
      19    c = (__foo () != 1);
      20    if (__bar ())
      21      {
      22        return (1);
      23      }
      24    if (c)
      25      tmpp = op;
      26    if (tmpp)
      27      {
      28      }
      29    else if (c)
      30      {
      31        ret->newp = tmpp;
      32      }
      33  }