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/] [pr39591-3.c] - Rev 384
Compare with Previous | Blame | View Log
/* PR other/39591 */ /* { dg-do run } */ /* { dg-options "-O2" } */ extern void abort (void); int err, a[40]; void __attribute__((noinline)) foo (int *array) { #pragma omp task { int j; for (j = 0; j < sizeof array / sizeof array[0]; j++) if (array[j] != 0x55555555) #pragma omp atomic err++; } } int main (void) { int k; for (k = 0; k < sizeof a / sizeof a[0]; k++) a[k] = 0x55555555; #pragma omp parallel { int i; #pragma omp for schedule (dynamic) for (i = 0; i < 50; i++) foo (a); } if (err) abort (); return 0; }