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

     1  /* Copyright (C) 2000  Free Software Foundation  */
     2  /* Contributed by Alexandre Oliva <aoliva@cygnus.com> */
     3  
     4  unsigned long l = (unsigned long)-2;
     5  unsigned short s;
     6  
     7  int main () {
     8    long t = l;
     9    s = t;
    10    if (s != (unsigned short)-2)
    11      abort ();
    12    exit (0);
    13  }