(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
20191023-1.c
       1  /* PR tree-optimization/92131 */
       2  /* Testcase by Armin Rigo <arigo@tunes.org> */
       3  
       4  long b, c, d, e, f, i;
       5  char g, h, j, k;
       6  int *aa;
       7  
       8  static void error (void) __attribute__((noipa));
       9  static void error (void) { __builtin_abort(); }
      10  
      11  static void see_me_here (void) __attribute__((noipa));
      12  static void see_me_here (void) {}
      13  
      14  static void aaa (void) __attribute__((noipa));
      15  static void aaa (void) {}
      16  
      17  static void a (void) __attribute__((noipa));
      18  static void a (void) {
      19    long am, ao;
      20    if (aa == 0) {
      21      aaa();
      22      if (j)
      23        goto ay;
      24    }
      25    return;
      26  ay:
      27    aaa();
      28    if (k) {
      29      aaa();
      30      goto az;
      31    }
      32    return;
      33  az:
      34    if (i)
      35      if (g)
      36        if (h)
      37          if (e)
      38            goto bd;
      39    return;
      40  bd:
      41    am = 0;
      42    while (am < e) {
      43      switch (c) {
      44      case 8:
      45        goto bh;
      46      case 4:
      47        return;
      48      }
      49    bh:
      50      if (am >= 0)
      51        b = -am;
      52      ao = am + b;
      53      f = ao & 7;
      54      if (f == 0)
      55        see_me_here();
      56      if (ao >= 0)
      57        am++;
      58      else
      59        error();
      60    }
      61  }
      62  
      63  int main (void)
      64  {
      65      j++;
      66      k++;
      67      i++;
      68      g++;
      69      h++;
      70      e = 1;
      71      a();
      72      return 0;
      73  }