sched1: debug/model: dump predecessor list and BB num [NFC]
[gcc.git] / libgomp / testsuite / libgomp.c / loop-9.c
blob1f789e12ecbdcb800518f5ab60333e76b408eb40
1 extern void abort (void);
3 char buf[8] = "01234567";
4 char buf2[8] = "23456789";
6 int
7 main (void)
9 char *p, *q;
10 int sum = 0;
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)
16 abort ();
17 return 0;