Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Warray-bounds-3.C
blob: a8585717988043a60b88193df209dab45460bdc7 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2 -Wall" } */
extern
void
function
(
void
*
x
);
struct
A
{
long
x
;
char
d
[
0
];
};
void
test
(
A
*
a
)
{
function
((
char
*)
a
-
4
);
/* { dg-bogus "below array bounds" } */
}