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/] [collapse-1.c] - Rev 334
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-fopenmp" } */ int i, j, k; extern int foo (void); void f1 (void) { #pragma omp for collapse (2) for (i = 0; i < 5; i++) ; /* { dg-error "not enough perfectly nested" } */ { for (j = 0; j < 5; j++) ; } } void f2 (void) { #pragma omp for collapse (2) for (i = 0; i < 5; i++) { { { for (j = 0; j < 5; j++) { } } } } } void f3 (void) { #pragma omp for collapse (2) for (i = 0; i < 5; i++) { int k = foo (); /* { dg-error "not enough perfectly nested" } */ { { for (j = 0; j < 5; j++) { } } } } } void f4 (void) { #pragma omp for collapse (2) for (i = 0; i < 5; i++) { { for (j = 0; j < 5; j++) ; foo (); /* { dg-error "collapsed loops not perfectly nested before" } */ } } } void f5 (void) { #pragma omp for collapse (2) for (i = 0; i < 5; i++) { { for (j = 0; j < 5; j++) ; } foo (); /* { dg-error "collapsed loops not perfectly nested before" } */ } } void f6 (void) { #pragma omp for collapse (2) for (i = 0; i < 5; i++) { { for (j = 0; j < 5; j++) ; } } foo (); }
Go to most recent revision | Compare with Previous | Blame | View Log