c++: wrong error due to std::initializer_list opt [PR116476]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-124.c
blobbb08dfa99cf5e212df62f822abb49c7b83a7dcf3
1 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
2 #include "tree-vect.h"
4 #ifndef N
5 #define N 64
6 #endif
8 int a[N];
10 __attribute__((noinline, noclone)) void
11 foo (int x)
13 int i;
14 for (i = 0; i < N; i++, x += 3)
15 a[i] = x;
18 int
19 main ()
21 int i;
23 check_vect ();
24 foo (6);
25 #pragma GCC novector
26 for (i = 0; i < N; i++)
27 if (a[i] != i * 3 + 6)
28 abort ();
29 return 0;
32 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */