c++: wrong error due to std::initializer_list opt [PR116476]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-simd-2.c
blob42bb782a8015ad4dadae1696e2669a8ba43892a0
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-additional-options "-fopenmp-simd" } */
5 #define N 1024
6 int a[N];
7 int bar (void);
9 void
10 foo (void)
12 #pragma omp simd if (bar ())
13 for (int i = 0; i < N; ++i)
14 a[i] = a[i] + 1;
17 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
18 /* { dg-final { scan-tree-dump-times "created versioning for simd if condition check" 1 "vect" } } */