2 20060910-1.c from the execute part of the gcc torture suite.
11 #pragma disable_warning 85
13 /* PR rtl-optimization/28636 */
14 /* Origin: Andreas Schwab <schwab@suse.de> */
18 unsigned char *buffer_position
;
19 unsigned char *buffer_end
;
22 int input_getc_complicated (struct input_ty
*x
) { return 0; }
24 int check_header (struct input_ty
*deeper
)
27 for (len
= 0; len
< 6; len
++)
28 if (((deeper
)->buffer_position
< (deeper
)->buffer_end
29 ? *((deeper
)->buffer_position
)++
30 : input_getc_complicated((deeper
))) < 0)
38 void testTortureExecute (void)
40 s
.buffer_position
= b
;
41 s
.buffer_end
= b
+ sizeof b
;
42 if (!check_header(&s
))
44 if (s
.buffer_position
!= s
.buffer_end
)