Joseph Huber | 6668e4c | 2020-10-07 14:13:14 -0400 | [diff] [blame] | 1 | // RUN: not %clang_cc1 -x c++ -fopenmp -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx-nvidia-cuda -o - %s 2>&1 | FileCheck %s |
| 2 | // RUN: not %clang_cc1 -x c++ -fopenmp -triple i386-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -o - %s 2>&1 | FileCheck %s |
| 3 | // RUN: not %clang_cc1 -x c++ -fopenmp -triple x86_64-unknown-unknown -fopenmp-targets=nvptx-nvidia-cuda -o - %s 2>&1 | FileCheck %s |
| 4 | // RUN: not %clang_cc1 -x c++ -fopenmp -triple x86_64-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -o - %s 2>&1 | FileCheck %s |
| 5 | // CHECK: error: OpenMP target architecture '{{.+}}' pointer size is incompatible with host '{{.+}}' |
| 6 | #ifndef HEADER |
| 7 | #define HEADER |
| 8 | |
| 9 | void test() { |
| 10 | #pragma omp target |
| 11 | {} |
| 12 | } |
| 13 | |
| 14 | #endif |