Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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" } */
}