(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
avr/
pr71676.c
       1  /* { dg-do run } */
       2  /* { dg-options "-Os -fno-tree-switch-conversion" } */
       3  
       4  #include "exit-abort.h"
       5  
       6  volatile unsigned char y;
       7  
       8  __attribute__((noinline,noclone))
       9  unsigned char foo (unsigned long x) 
      10  {
      11    switch (x)
      12      {
      13      case 0:	y = 67; break;
      14      case 1:	y = 20; break;
      15      case 2:	y = 109; break;
      16      case 3:	y = 33; break;
      17      case 4:	y = 44; break;
      18      case 5:	y = 37; break;
      19      case 6:	y = 10; break;
      20      case 7:	y = 98; break;
      21      }
      22    return y;
      23  }
      24  
      25  int main (void)
      26  {
      27    if (0 != foo (7L + 0x10000L))
      28      abort();
      29    return 0;
      30  }