libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr40254.c
blob04fc3eb9b8b8423119a417b8d4982ff948ceb643
1 #include <stdarg.h>
2 #include "tree-vect.h"
4 struct s
6 int *x;
7 int x1;
8 int x2;
9 int x3;
10 int *y;
13 struct s arr[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
15 __attribute__ ((noinline)) void
16 foo (int i, int *in_x, int *in_y)
18 arr[i].x = in_x;
19 arr[i].y = in_y;
22 int
23 main (void)
25 int a, b;
27 check_vect ();
29 foo (5, &a, &b);
31 if (arr[5].x != &a || arr[5].y != &b)
32 abort ();
34 return 0;