modernc.org/cc@v1.0.1/testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/compile/20090107-1.c (about)

     1  /* Verify that we don't ICE by forming invalid addresses for unaligned
     2     doubleword loads (originally for PPC64).  */
     3  
     4  struct a
     5  {
     6   unsigned int x;
     7   unsigned short y;
     8  } __attribute__((packed));
     9  
    10  struct b {
    11   struct a rep;
    12   unsigned long long seq;
    13  } __attribute__((packed));
    14  
    15  struct c {
    16   int x;
    17   struct a a[5460];
    18   struct b b;
    19  };
    20  
    21  extern void use_ull(unsigned long long);
    22  extern void f(struct c *i) {
    23    use_ull(i->b.seq);
    24    return;
    25  }