PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / goacc / tile-1.C
blob27c53835d3631fb990b7385285e50ebb67b264d7
1 /*  of tile erroneously clobbered the template, resulting
2     in missing errors and other fun.  */
4 template <int I>
5 void Foo ()
7 #pragma acc parallel loop tile(I) // { dg-error "" }
8   for (int ix = 0; ix < 10; ix++)
9     ;
12 int main ()
14   Foo<1> ();  // OK
15   Foo<-1> (); // error