Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr57411.C

raw
1 // { dg-do compile }
2 // { dg-options "-O -fno-tree-dce -ftree-vectorize" }
3
4 static inline void
5 iota (int *__first, int *__last, int __value)
6 {
7 for (; __first != __last; ++__first)
8 {
9 *__first = __value;
10 }
11 }
12
13 void assert_fail ();
14
15 int A[] = { 0, 0, 0 };
16
17 void
18 test01 (int equal)
19 {
20 iota (A, A + 3, 1);
21 if (equal)
22 assert_fail ();
23 }