field-overlap.c 221 B

1234567891011121314151617
  1. static struct {
  2. int x;
  3. struct {
  4. int z;
  5. int w;
  6. } y;
  7. } a = { .y.z = 1, .y.w = 2, };
  8. static struct {int x, y, z;} w[2] = {
  9. {.x = 1, .y = 2, .z = 3},
  10. {.x = 1, .y = 2, .z = 3}
  11. };
  12. /*
  13. * check-name: field overlap
  14. */