gcc/testsuite/gcc.dg/vect/pr49771.c
raw| 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 |