Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/vect/pr49771.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 extern void abort (void); |
2 | |
3 #include <stdarg.h> | |
4 #include "tree-vect.h" | |
5 | |
6 static int a[1000]; | |
7 | |
8 int | |
9 foo (void) | |
10 { | |
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]; | |
17 } | |
18 | |
19 int | |
20 main (void) | |
21 { | |
22 int res; | |
23 check_vect (); | |
24 res = foo (); | |
25 if (res != 1999) | |
26 abort (); | |
27 return 0; | |
28 } | |
29 |