1/* { dg-do compile } */
2/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */
3
4int foo () {
5  int buffer[10][10];
6  int* pi = &buffer[0][0];  /* { dg-bogus "same element type" } */
7  *pi = 10;
8  return buffer[0][0];
9}
10