URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [libgomp/] [testsuite/] [libgomp.c/] [loop-9.c] - Rev 384
Compare with Previous | Blame | View Log
extern void abort (void); char buf[8] = "01234567"; char buf2[8] = "23456789"; int main (void) { char *p, *q; int sum = 0; #pragma omp parallel for collapse (2) reduction (+:sum) lastprivate (p, q) for (p = buf; p < &buf[8]; p++) for (q = &buf2[0]; q <= buf2 + 7; q++) sum += (*p - '0') + (*q - '0'); if (p != &buf[8] || q != buf2 + 8 || sum != 576) abort (); return 0; }