c++: wrong error due to std::initializer_list opt [PR116476]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr81740-2.c
blob7b2bfe139f20fb66c90cfd643b65df3edb9b536e
1 /* { dg-require-effective-target vect_int } */
2 /* { dg-require-effective-target vect_hw_misalign } */
4 #include "tree-vect.h"
6 int a[8][10] = { [2][5] = 4 }, c;
8 int
9 main ()
11 short b;
12 int i, d;
13 check_vect ();
14 for (b = 4; b >= 0; b--)
15 for (c = 6; c >= 0; c--)
16 a[c + 1][b + 2] = a[c][b + 1];
17 for (i = 0; i < 8; i++)
18 #pragma GCC novector
19 for (d = 0; d < 10; d++)
20 if (a[i][d] != (i == 3 && d == 6) * 4)
21 __builtin_abort ();
22 return 0;
25 /* { dg-final { scan-tree-dump "OUTER LOOP VECTORIZED" "vect" } } */