| 1 |
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=51 -ast-print %s | FileCheck %s |
| 2 |
// expected-no-diagnostics |
| 3 |
|
| 4 |
#ifndef HEADER |
| 5 |
#define HEADER |
| 6 |
|
| 7 |
void 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 |
#endif |