2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-124.c
blobc720648aaddbe72d0073fcf7548408ce6bda3cdd
1 #include "tree-vect.h"
3 #ifndef N
4 #define N 64
5 #endif
7 int a[N];
9 __attribute__((noinline, noclone)) void
10 foo (int x)
12 int i;
13 for (i = 0; i < N; i++, x += 3)
14 a[i] = x;
17 int
18 main ()
20 int i;
22 check_vect ();
23 foo (6);
24 for (i = 0; i < N; i++)
25 if (a[i] != i * 3 + 6)
26 abort ();
27 return 0;