openmp: Add testcases for omp_max_vf
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr50014.c
blob6ed43c681a9cd3a3a1e436a7efeb261e9284e350
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 int f(unsigned char *s, int n)
6 int sum = 0;
7 int i;
9 for (i = 0; i < n; i++)
10 sum += 256 * s[i];
12 return sum;