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

     1  /* PR tree-optimization/81555 */
     2  
     3  unsigned int a = 1, d = 0xfaeU, e = 0xe376U;
     4  _Bool b = 0, f = 1;
     5  unsigned char g = 1;
     6  
     7  void
     8  foo (void)
     9  {
    10    _Bool c = a != b;
    11    if (c)
    12      f = 0;
    13    if (e & c & (unsigned char)d & c)
    14      g = 0;
    15  }
    16  
    17  int
    18  main ()
    19  {
    20    foo ();
    21    if (f || g != 1)
    22      __builtin_abort ();
    23    return 0;
    24  }