17 lines · cpp
1// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=51 -ast-print %s | FileCheck %s2// expected-no-diagnostics3 4#ifndef HEADER5#define HEADER6 7void test() {8 int a[10];9 #pragma omp target update to(iterator(int it = 0:10): a[it]) 10 // CHECK: int a[10];11 // CHECK: #pragma omp target update to(iterator(int it = 0:10): a[it])12 #pragma omp target update from(iterator(int it = 0:10): a[it]) 13 // CHECK: #pragma omp target update from(iterator(int it = 0:10): a[it])14}15 16#endif17