URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [pr27416.c] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
/* PR middle-end/27416 */ /* { dg-do compile } */ void foo (void) { int i = 0, j = 0; #pragma omp for firstprivate (j) /* { dg-error "is private in outer context" } */ for (i = 0; i < 10; i++) j++; } int bar (void) { int i, j; #pragma omp for lastprivate (j) /* { dg-error "is private in outer context" } */ for (i = 0; i < 10; i++) j = i; return j; } int baz (void) { int i, j = 0; #pragma omp for reduction (+:j) /* { dg-error "is private in outer context" } */ for (i = 0; i < 10; i++) j++; return j; }
Go to most recent revision | Compare with Previous | Blame | View Log