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

     1  /* PR middle-end/40692 */
     2  
     3  #define M1(x) (((x) & 0x00000002) ? 0x2 : ((x) & 0x1))
     4  #define M2(x) (((x) & 0x0000000c) ? M1 ((x) >> 2) << 2 : M1 (x))
     5  #define M3(x) (((x) & 0x000000f0) ? M2 ((x) >> 4) << 4 : M2 (x))
     6  #define M4(x) (((x) & 0x0000ff00) ? M3 ((x) >> 8) << 8 : M3 (x))
     7  #define M5(x) (((x) & 0xffff0000) ? M4 ((x) >> 16) << 16 : M4 (x))
     8  
     9  struct A { char e; char f; };
    10  
    11  long
    12  foo (void)
    13  {
    14    return M5 (4096UL - (long) &((struct A *) 0)->f);
    15  }