(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
pr61572.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2" } */
       3  
       4  struct autofs_sb_info
       5  {
       6    int exp_timeout;
       7  };
       8  void *f;
       9  int g;
      10  static int fn1 (struct autofs_sb_info *p1)
      11  {
      12    int a, b;
      13    a = (
      14         {
      15         register __typeof__(0) c
      16  #if defined __x86_64__
      17         asm("rdx")
      18  #endif
      19         ;
      20         b = c;
      21         int d;
      22         __typeof__(0) e;
      23         e = p1->exp_timeout / 1000;
      24         switch (0)
      25         default:
      26         asm("" : "=a"(d) : "0"(e), ""(0));
      27         d;
      28         });
      29    if (a)
      30      return 1;
      31    if (b)
      32      p1->exp_timeout = 0;
      33    return 0;
      34  }
      35  
      36  int fn2 ()
      37  {
      38    struct autofs_sb_info *h = f;
      39    switch (g)
      40      {
      41        case 0 ?:
      42  0 : return fn1 (h);
      43        default:
      44      return 0;
      45      }
      46  }