LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-34-big-array.c
blob0aa6d507a82f086056113157bc4b7ce0d5a87691
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 128
8 struct {
9 char ca[N];
10 } s;
11 char cb[N];
13 __attribute__ ((noinline))
14 int main1 ()
16 int i;
18 for (i = 0; i < N; i++)
20 cb[i] = i*3;
21 asm volatile ("" ::: "memory");
23 for (i = 0; i < N; i++)
25 s.ca[i] = cb[i];
28 /* check results: */
29 for (i = 0; i < N; i++)
31 if (s.ca[i] != cb[i])
32 abort ();
35 return 0;
38 int main (void)
40 check_vect ();
42 return main1 ();
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */