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

     1  /* This used to fail on h8300.  */
     2  
     3  extern void abort (void);
     4  extern void exit (int);
     5  
     6  unsigned long
     7  foo (unsigned long n)
     8  {
     9    return (~n >> 3) & 1;
    10  }
    11  
    12  int
    13  main ()
    14  {
    15    if (foo (1 << 3) != 0)
    16      abort ();
    17  
    18    if (foo (0) != 1)
    19      abort ();
    20  
    21    exit (0);
    22  }