brintos

brintos / llvm-project-archived public Read only

0
0
Text · 717 B · f0f9d23 Raw
15 lines · cpp
1// RUN: not %clang_cc1 -x c++ -fopenmp -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx-nvidia-cuda -o - %s 2>&1 | FileCheck %s2// RUN: not %clang_cc1 -x c++ -fopenmp -triple i386-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -o - %s 2>&1 | FileCheck %s3// RUN: not %clang_cc1 -x c++ -fopenmp -triple x86_64-unknown-unknown -fopenmp-targets=nvptx-nvidia-cuda -o - %s 2>&1 | FileCheck %s4// RUN: not %clang_cc1 -x c++ -fopenmp -triple x86_64-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -o - %s 2>&1 | FileCheck %s5// CHECK: error: OpenMP target architecture '{{.+}}' pointer size is incompatible with host '{{.+}}'6#ifndef HEADER7#define HEADER8 9void test() {10#pragma omp target11  {}12}13 14#endif15