repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Warray-bounds-3.C
blob
a8585717988043a60b88193df209dab45460bdc7
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wall" } */
3
4
extern void function(void * x);
5
6
struct A {
7
long x;
8
char d[0];
9
};
10
11
12
void test(A * a) {
13
function((char *)a - 4); /* { dg-bogus "below array bounds" } */
14
}
15