2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr49771.c
blob1d8b9b34dd7b24f4aeba06f463e20856f1904afd
1 extern void abort (void);
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 static int a[1000];
8 int
9 foo (void)
11 int j;
12 int i;
13 for (i = 0; i < 1000; i++)
14 for (j = 0; j < 1000; j++)
15 a[j] = a[i] + 1;
16 return a[0];
19 int
20 main (void)
22 int res;
23 check_vect ();
24 res = foo ();
25 if (res != 1999)
26 abort ();
27 return 0;