modernc.org/cc@v1.0.1/testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/execute/zerolen-2.c (about)

     1  /* { dg-skip-if "assumes absence of larger-than-word padding" { epiphany-*-* } "*" "" } */
     2  extern void abort(void);
     3  
     4  typedef int word __attribute__((mode(word)));
     5  
     6  struct foo
     7  {
     8    word x;
     9    word y[0];
    10  };
    11  
    12  int main()
    13  {
    14    if (sizeof(word) != sizeof(struct foo))
    15      abort();
    16    if (__alignof__(word) != __alignof__(struct foo))
    17      abort();
    18    return 0;
    19  }