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

     1   typedef signed int signed16 __attribute__ ((__mode__ (__HI__)));
     2   typedef unsigned int unsigned16 __attribute__ ((__mode__ (__HI__)));
     3   typedef signed16 HI;
     4   typedef unsigned16 UHI;
     5  unsigned short f(int y)
     6  {
     7    HI tmp_b4;
     8    tmp_b4 = y;
     9    UHI opval;
    10    if (tmp_b4 == -32768)
    11      opval = 32767;
    12    else
    13     opval = -tmp_b4;
    14   return opval;
    15  }
    16