modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/pr41917.c (about)

     1  /* PR rtl-optimization/41917 */
     2  
     3  extern void abort (void);
     4  unsigned int a = 1;
     5  
     6  int
     7  main (void)
     8  {
     9    unsigned int b, c, d;
    10  
    11    if (sizeof (int) != 4 || (int) 0xc7d24b5e > 0)
    12      return 0;
    13  
    14    c = 0xc7d24b5e;
    15    d = a | -2;
    16    b = (d == 0) ? c : (c % d);
    17    if (b != c)
    18      abort ();
    19  
    20    return 0;
    21  }