PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr57411.C
blob9c99ee0619cd75568cc09a4640de30e98d8b9367
1 // { dg-do compile }
2 // { dg-options "-O -fno-tree-dce -ftree-vectorize" }
4 static inline void
5 iota (int *__first, int *__last, int __value)
7   for (; __first != __last; ++__first)
8     {
9       *__first = __value;
10     }
13 void assert_fail ();
15 int A[] = { 0, 0, 0 };
17 void
18 test01 (int equal)
20   iota (A, A + 3, 1);
21   if (equal)
22     assert_fail ();