blob: d1bf6664ea89bb63cb2523007e328b84ca71da60 [file]
/* { dg-do compile } */
/* Check that an iterator whose trip count is not known at compile time does not
ICE. */
void f (int n, int *arr)
{
#pragma omp target update to(iterator(i=0:n): arr[i]) /* { dg-message "sorry, unimplemented: dynamic iterator sizes not implemented yet" } */
}
void f1 (int s, int *arr)
{
#pragma omp target update to(iterator(i=0:9:s): arr[i]) /* { dg-message "sorry, unimplemented: dynamic iterator sizes not implemented yet" } */
}
void f2 (int n, int *arr)
{
#pragma omp target update from(iterator(i=0:n): arr[i]) /* { dg-message "sorry, unimplemented: dynamic iterator sizes not implemented yet" } */
}