1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_condition } */
3 /* { dg-skip-if "need vect_max_reduc support" { ! vect_max_reduc } } */
4
5 extern void d(void);
6 void a() {
7 char *b;
8 char c = 0;
9 for (; b < (char *)a; b++) {
10 if (*b)
11 c = 1;
12 *b = 0;
13 }
14 if (c)
15 d();
16 }
17 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */