(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr80341.c
       1  /* { dg-do run } */
       2  /* { dg-additional-options "-Wno-overflow" } */
       3  /* { dg-require-effective-target int32plus } */
       4  
       5  const signed char c = -84;
       6  signed char s;
       7  
       8  void
       9  foo ()
      10  {
      11    s = (unsigned short) c / -55;
      12  }
      13  
      14  int
      15  main ()
      16  {
      17    foo ();
      18    if (s != 90)
      19      __builtin_abort ();
      20  }