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

     1  long long __attribute__ ((noinline, noclone))
     2  foo (long long ival)
     3  {
     4   if (ival <= 0)
     5      return -0x7fffffffffffffffL - 1;
     6  
     7   return 0x7fffffffffffffffL;
     8  }
     9  
    10  int
    11  main (void)
    12  {
    13    if (foo (-1) != (-0x7fffffffffffffffL - 1))
    14      __builtin_abort ();
    15  
    16    if (foo (1) != 0x7fffffffffffffffL)
    17      __builtin_abort ();
    18  
    19    return 0;
    20  }