summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr30784.c
blob: 3df9afe3bbdc2d41998a995722c7c1bdddd7e5d7 (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
/* { dg-require-effective-target vect_int } */

#include <stdarg.h>
#include "tree-vect.h"

long stack_vars_sorted[32];

int
main1 (long n)
{
  long si;

  for (si = 0; si < n; ++si)
    stack_vars_sorted[si] = si;
}

int main ()
{
  long si;

  check_vect ();
  main1 (32);

  for (si = 0; si < 32; ++si)
    if (stack_vars_sorted[si] != si)
      abort ();

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