Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
pr63879-1.c
blob: 2035849a8ced0990bafdcb212bdb44412010844b [
file
] [
log
] [
blame
]
/* PR sanitizer/63879 */
/* { dg-do compile } */
/* { dg-options "-fsanitize=undefined" } */
struct
A
{
int
inode
;
}
*
a
;
int
b
,
c
;
void
fn1
()
{
int
d
=
0
;
while
(
b
)
{
if
(
a
->
inode
)
d
++;
a
=
0
;
}
c
=
d
-
1
;
for
(;
c
>=
0
;
c
--)
;
}