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

     1  /* PR middle-end/57344 */
     2  
     3  struct __attribute__((packed)) S
     4  {
     5    long long int a : 43;
     6    long long int b : 22;
     7    char c;
     8    long long int : 0;
     9  } s[2];
    10  int i;
    11  
    12  __attribute__((noinline, noclone)) void
    13  foo (long long int x)
    14  {
    15    if (x != -3161LL)
    16      __builtin_abort ();
    17    asm volatile ("" : : : "memory");
    18  }
    19  
    20  int
    21  main ()
    22  {
    23    struct S t = { 0, -3161LL };
    24    s[1] = t;
    25    for (; i < 1; i++)
    26      foo (s[1].b);
    27    return 0;
    28  }