1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-thread1-details -fdump-tree-dce2" } */
7 foo (int N
, int c
, int b
, int *a
)
12 if (status
&& i
< N
&& a
[i
] == b
) {
19 for (i
= -1, flag
= 1; ++i
< N
&& flag
;)
35 /* There are 4 FSM jump threading opportunities, all of which will be
36 realized, which will eliminate testing of FLAG, completely. */
37 /* { dg-final { scan-tree-dump-times "Registering FSM" 4 "thread1"} } */
39 /* There should be no assignments or references to FLAG, verify they're
40 eliminated as early as possible. */
41 /* { dg-final { scan-tree-dump-not "if .flag" "dce2"} } */