blob: 322f565c9c732d1f153bfe07e2e8f61e277a73e3 [file]
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=51 -ast-print %s | FileCheck %s
// expected-no-diagnostics
#ifndef HEADER
#define HEADER
void test() {
int a[10];
#pragma omp target update to(iterator(int it = 0:10): a[it])
// CHECK: int a[10];
// CHECK: #pragma omp target update to(iterator(int it = 0:10): a[it])
#pragma omp target update from(iterator(int it = 0:10): a[it])
// CHECK: #pragma omp target update from(iterator(int it = 0:10): a[it])
}
#endif