summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr40254.c
blob: b890a4493120de293ebcdeadd4191363303292b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <stdlib.h>
#include <stdarg.h>
#include "tree-vect.h"

struct s
{
  int *x;
  int x1;
  int x2;
  int x3;
  int *y;
};

struct s arr[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));

__attribute__ ((noinline)) void
foo (int i, int *in_x, int *in_y)
{
  arr[i].x = in_x;
  arr[i].y = in_y;
}

int
main (void)
{
  int a, b;

  check_vect ();

  foo (5, &a, &b);

  if (arr[5].x != &a || arr[5].y != &b)
    abort ();

  return 0;
}

/* { dg-final { cleanup-tree-dump "vect" } } */