1 /* PR rtl-optimization/46315 */
2 /* Reported by Magnus Granberg <zorry@gentoo.org> */
5 /* { dg-options "-O2 -fno-strict-overflow" } */
7 extern void abort (void);
10 parse_ranged (char const *s
, int digits
)
13 char const *lim
= s
+ digits
;
16 unsigned d
= *s
++ - '0';
21 return s
&& 0 <= n
&& n
<= 59 ? s
: 0;
26 const char *s
= "10092240";
28 s
= parse_ranged (s
, 2);
29 s
= parse_ranged (s
, 2);
30 s
= parse_ranged (s
, 2);
31 s
= parse_ranged (s
, 2);