Handle peeling for alignment with masking
[official-gcc.git] / gcc / testsuite / gcc.dg / Warray-bounds-26.c
blob85bdb3ea14647e151d3923284506779189ab9c8c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Warray-bounds" } */
4 struct Rec {
5 unsigned char data[1]; // actually variable length
6 };
8 union U {
9 unsigned char buf[42];
10 struct Rec rec;
13 int Load()
15 union U u;
16 return u.rec.data[1]; /* { dg-bogus "array bound" } */