blob: 9c99ee0619cd75568cc09a4640de30e98d8b9367 [file] [log] [blame]
// { 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 ();
}