☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wstrict-aliasing-bogus-nested-arrays.C
☽
☼
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-nested-arrays.C
code
plain
raw
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */
3
4
int 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
}