Makefile.am: add gitversion.h to BUILT_SOURCES
[ppcg.git] / tests / call3.c
blob51b1e290ce4f4c8fc2636f163f61ffbfe82e1297
1 #include <stdlib.h>
3 void copy_summary(int b[100], int a[100])
5 for (int i = 0; i < 100; ++i) {
6 b[i] = 0;
7 int c = a[i];
11 #ifdef pencil_access
12 __attribute__((pencil_access(copy_summary)))
13 #endif
14 void copy(int b[100], int a[100]);
16 int main()
18 int A[100][100], B[100];
20 for (int i = 0; i < 100; ++i)
21 B[i] = i;
22 #pragma scop
23 for (int i = 0; i < 100; ++i)
24 copy(A[i], B);
25 #pragma endscop
26 for (int i = 0; i < 100; ++i)
27 for (int j = 0; j < 100; ++j)
28 if (A[j][i] != B[i])
29 return EXIT_FAILURE;
31 return EXIT_SUCCESS;