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