1 extern void abort (void);
3 char buf
[8] = "01234567";
4 char buf2
[8] = "23456789";
11 #pragma omp parallel for collapse (2) reduction (+:sum) lastprivate (p, q)
12 for (p
= buf
; p
< &buf
[8]; p
++)
13 for (q
= &buf2
[0]; q
<= buf2
+ 7; q
++)
14 sum
+= (*p
- '0') + (*q
- '0');
15 if (p
!= &buf
[8] || q
!= buf2
+ 8 || sum
!= 576)