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