PPCG 0.09.2
[ppcg.git] / tests / local.c
blobe8b3894f019aa2584a4ee26a3b92389e74d05567
1 #include <stdlib.h>
3 int main()
5 int A[100];
7 #pragma scop
9 int B[100];
10 B[0] = 0;
11 for (int i = 1; i < 100; ++i)
12 B[i] = B[i - 1] + 1;
13 for (int i = 0; i < 100; ++i)
14 A[i] = B[i];
16 #pragma endscop
17 for (int i = 0; i < 100; ++i)
18 if (A[i] != i)
19 return EXIT_FAILURE;
21 return EXIT_SUCCESS;