openmp: Fix signed/unsigned warning
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-14.c
blob1db41ee778cac14b62ee28b7a40c4a12ceed9ee4
1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 #define N 16
9 __attribute__ ((noinline))
10 int main1 ()
12 int i;
13 int ia[N];
15 /* Induction. */
16 for ( i = 0; i < N; i++) {
17 ia[i] = i;
20 /* check results: */
21 #pragma GCC novector
22 for (i = 0; i < N; i++)
24 if (ia[i] != i)
25 abort ();
28 return 0;
31 int main (void)
33 check_vect();
35 return main1 ();
38 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
39 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */