repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* ru.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wstrict-aliasing-bogus-nested-arrays.C
blob
5291181024737653b4dea7a910e250d11cbf0d15
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
}