Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr28726.c
blob11232ac86a2851fee8303280edcecaddc02285bf
1 /* PR rtl-optimization/28726 */
2 /* Origin: Sigurd Schneider <sg313d@gmail.com> */
4 /* { dg-do run } */
5 /* { dg-options "-O2 -fsched2-use-superblocks" } */
7 extern void abort (void);
9 static double my_loop(void) __attribute__((noinline));
11 static double my_loop(void)
13 double retval = 0.0;
14 const unsigned char *start = "\005\b\000";
15 const unsigned char *const end = start + 2;
17 while (start < end)
18 retval += *start++;
20 return retval;
23 int main(void)
25 if (my_loop() != 13.0)
26 abort ();
28 return 0;