gcc/testsuite/g++.dg/goacc/tile-1.C
raw| 1 | /* of tile erroneously clobbered the template, resulting |
| 2 | in missing errors and other fun. */ |
| 3 | |
| 4 | template <int I> |
| 5 | void Foo () |
| 6 | { |
| 7 | #pragma acc parallel loop tile(I) // { dg-error "" } |
| 8 | for (int ix = 0; ix < 10; ix++) |
| 9 | ; |
| 10 | } |
| 11 | |
| 12 | int main () |
| 13 | { |
| 14 | Foo<1> (); // OK |
| 15 | Foo<-1> (); // error |
| 16 | } |