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

     1  /* PR target/78438 */
     2  
     3  char a = 0;
     4  int b = 197412621;
     5  
     6  __attribute__ ((noinline, noclone))
     7  void foo ()
     8  {
     9    a = 0 > (short) (b >> 11);
    10  }
    11  
    12  int
    13  main ()
    14  {
    15    asm volatile ("" : : : "memory");
    16    if (__CHAR_BIT__ != 8 || sizeof (short) != 2 || sizeof (int) < 4)
    17      return 0;
    18    foo ();
    19    if (a != 0)
    20      __builtin_abort ();
    21    return 0;
    22  }