1 /* PR 30730, PR 26900, number of iterations analysis should be able to
2 determine number of iterations of the following loops unconditionally. */
4 /* { dg-do compile } */
5 /* { dg-options "-O -fstrict-overflow -fdump-tree-empty" } */
7 unsigned foo(unsigned int n
)
20 int foo0(int i0
, int i1
)
23 for (i
=i0
; i
<=i1
+1; ++i
)
28 /* { dg-final { scan-tree-dump-times "Removing empty loop" 2 "empty" } } */
29 /* { dg-final { cleanup-tree-dump "empty" } } */