LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr80815-1.c
blob98c06c0bb035deed556df88895a94380bdf95481
1 /* { dg-require-effective-target vect_int } */
3 #include "tree-vect.h"
4 int arr[2048];
6 __attribute__ ((noinline)) int
7 foo (int *a, int *b)
9 int i;
10 int *a1 = a;
11 int *a0 = a1 - 512;
12 for (i = 0; i < 500; i++)
14 *b = *a0 + *a1;
15 b++;
16 a0--;
17 a1--;
19 return 0;
22 int main (void)
24 int *a = &arr[1027];
25 int *b = &arr[1024];
27 int i;
28 for (i = 0; i < 2048; i++)
29 arr[i] = i;
31 foo (a, b);
33 if (arr[1026] != 2053 || arr[1027] != 2054)
34 abort ();
36 return 0;