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

     1  /* PR tree-optimization/48717 */
     2  
     3  extern void abort (void);
     4  
     5  int v = 1, w;
     6  
     7  unsigned short
     8  foo (unsigned short x, unsigned short y)
     9  {
    10    return x + y;
    11  }
    12  
    13  void
    14  bar (void)
    15  {
    16    v = foo (~w, w);
    17  }
    18  
    19  int
    20  main ()
    21  {
    22    bar ();
    23    if (v != (unsigned short) -1)
    24      abort ();
    25    return 0;
    26  }