rt_gccstream/gcc/testsuite/gcc.c-torture/compile/pr26213.c

16 lines
236 B
C

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;
}
}