Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/vect/pr40254.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 |