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