gcc/testsuite/c-c++-common/goacc/tile-2.c
raw| 1 | int main () |
| 2 | { |
| 3 | #pragma acc parallel |
| 4 | { |
| 5 | #pragma acc loop tile (*,*) |
| 6 | for (int ix = 0; ix < 30; ix++) /* { dg-error "not enough" } */ |
| 7 | ; |
| 8 | |
| 9 | #pragma acc loop tile (*,*) |
| 10 | for (int ix = 0; ix < 30; ix++) |
| 11 | for (int jx = 0; jx < ix; jx++) /* { dg-error "condition expression" } */ |
| 12 | ; |
| 13 | |
| 14 | #pragma acc loop tile (*) |
| 15 | for (int ix = 0; ix < 30; ix++) |
| 16 | for (int jx = 0; jx < ix; jx++) /* OK */ |
| 17 | ; |
| 18 | |
| 19 | } |
| 20 | return 0; |
| 21 | } |