PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / g++.dg / pr68270.C
blob441fca3e85fd97c749c117c73a4e248e28055e91
1 /* PR71633 */
2 /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && { ! x32 } } } } */
3 /* { dg-options "-Werror=chkp -mmpx -fcheck-pointer-bounds -O1 -fchkp-flexible-struct-trailing-arrays" } */
5 struct a
7   struct
8   {
9     int e[1];
10   } f;
13 int g(a *ptr)
15   return ptr->f.e[1];