Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gcc.dg
/
ubsan
/
bounds-1.c
blob: 6f3cd2d53afddcab562dd3a6427fabf73b5b34e4 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-fsanitize=bounds" } */
struct
T
{
int
c
;
char
d
[];
}
t
=
{
1
,
"abcdefg"
};
int
baz
(
int
i
)
{
return
t
.
d
[
i
];
}