Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr26213.c
blob: d0b0bc5f785a458625f086b74b0a64e62caeedbc [
file
] [
log
] [
blame
]
/* { dg-additional-options "-fpermissive" } */
void
xnanosleep
(
_Bool
overflow
)
{
struct
{
int
tv_nsec
;
}
ts_sleep
;
if
(
0
<=
ts_sleep
.
tv_nsec
)
overflow
|=
1
;
for
(;;)
{
if
(
overflow
)
ts_sleep
.
tv_nsec
=
0
;
if
(
foo
(
ts_sleep
))
break
;
}
}