No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / tree-ssa / vrp18.c
blob366c0795dff9136708874614765254602d29992b
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp" } */
4 static int blocksize = 4096;
6 int bar (int);
8 void foo (void)
10 int toread;
11 int bytes;
12 static char eof_reached = 0;
14 toread = blocksize;
15 bytes = 1;
17 while (toread != 0)
19 bytes = bar (toread);
20 if (bytes <= 0)
22 if (bytes < 0)
23 continue;
24 break;
26 toread -= bytes;
29 if (bytes == 0)
30 eof_reached = 1;
33 /* { dg-final { scan-tree-dump-times "Simplified relational" 1 "vrp" } } */
34 /* { dg-final { cleanup-tree-dump "vrp" } } */