1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wstrict-overflow" } */
5 do_scrolling (unsigned int window_size
, unsigned int writecost
)
7 unsigned int i
= window_size
;
9 int terminal_window_p
= 0;
10 unsigned int queue
= 0;
12 for (i
= window_size
; i
; i
--)
16 else if (writecost
& 1)
17 terminal_window_p
= 1;
22 if (!terminal_window_p
)
24 terminal_window_p
= 1;
28 if (terminal_window_p
)