URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [pr30421.c] - Rev 154
Compare with Previous | Blame | View Log
/* PR middle-end/30421 */ /* { dg-do compile } */ /* { dg-options "-O2 -fopenmp -Wall" } */ int foo () { int a = 0, i; #pragma omp parallel for firstprivate(a) lastprivate(a) for (i = 0; i < 10; i++) a += i; return a; } int bar () { int a = 0, i; #pragma omp parallel for firstprivate(a) lastprivate(a) schedule(static, 2) for (i = 0; i < 10; i++) a += i; return a; } int baz () { int a = 0, i; #pragma omp parallel for firstprivate(a) lastprivate(a) schedule(dynamic) for (i = 0; i < 10; i++) a += i; return a; }