LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-36.c
blob64bc7fe18095178bc4bc0db5ef93e4c6706fa7d2
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 __attribute__ ((noinline))
9 int main1 ()
11 int i;
12 struct {
13 char ca[N];
14 char cb[N];
15 } s;
18 for (i = 0; i < N; i++)
20 s.cb[i] = 3*i;
21 __asm__ volatile ("");
24 for (i = 0; i < N; i++)
26 s.ca[i] = s.cb[i];
29 /* check results: */
30 for (i = 0; i < N; i++)
32 if (s.ca[i] != s.cb[i])
33 abort ();
36 return 0;
39 int main (void)
41 check_vect ();
43 return main1 ();
46 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */