* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-32.c
blob2c4a663c7dfd5c9d9296668222b6efaea6ac9469
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 int main1 ()
9 {
10 struct {
11 char ca[N];
12 } s;
13 int i;
15 for (i = 0; i < N; i++)
17 s.ca[i] = 5;
20 /* check results: */
21 for (i = 0; i < N; i++)
23 if (s.ca[i] != 5)
24 abort ();
27 return 0;
30 int main (void)
32 check_vect ();
34 return main1 ();
37 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
38 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
39 /* { dg-final { cleanup-tree-dump "vect" } } */