[OpenACC] Treat 'delete' as a valid clause during parsing in C++ mode
[llvm-project.git] / clang / test / OpenMP / nvptx_param_translate.c
blob9686bd8eff3cbb04cedcf3cc922a0343faebfdf1
1 // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc
2 // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm %s -fopenmp-is-target-device -fopenmp-host-ir-file-path %t-ppc-host.bc -o - | FileCheck %s
3 // expected-no-diagnostics
5 // CHECK: store ptr @{{.+}}, ptr [[FN:%[^,]+]],
6 // CHECK: [[MAP_FN:%.+]] = load ptr, ptr [[FN]]
7 // CHECK: call void [[MAP_FN]](ptr %
8 int main() {
9 double a, b;
11 #pragma omp target map(tofrom \
12 : a) map(to \
13 : b)
15 #pragma omp taskgroup
16 #pragma omp task shared(a)
17 a = b;
19 return 0;