URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wstrict-aliasing-bogus-nested-arrays.C] - Rev 301
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */
/* { dg-options "-O2 -Wstrict-aliasing -fstrict-aliasing" } */
int foo () {
int buffer[10][10];
int* pi = &buffer[0][0]; /* { dg-bogus "same element type" } */
*pi = 10;
return buffer[0][0];
}
Go to most recent revision | Compare with Previous | Blame | View Log