Imported Upstream version 4.7.3
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / vect / pr40254.c
1 #include <stdlib.h>
2 #include <stdarg.h>
3 #include "tree-vect.h"
4
5 struct s
6 {
7   int *x;
8   int x1;
9   int x2;
10   int x3;
11   int *y;
12 };
13
14 struct s arr[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
15
16 __attribute__ ((noinline)) void
17 foo (int i, int *in_x, int *in_y)
18 {
19   arr[i].x = in_x;
20   arr[i].y = in_y;
21 }
22
23 int
24 main (void)
25 {
26   int a, b;
27
28   check_vect ();
29
30   foo (5, &a, &b);
31
32   if (arr[5].x != &a || arr[5].y != &b)
33     abort ();
34
35   return 0;
36 }
37
38 /* { dg-final { cleanup-tree-dump "vect" } } */
39