[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / ibm128-unsupported.c
blob4c4930f3a7ce44c7e0debc6a2a6ef98ae95af6e5
1 // RUN: %clang_cc1 -triple powerpc64le -emit-llvm-bc -fopenmp %s \
2 // RUN: -fopenmp-targets=powerpc64le,x86_64 -o %t-ppc-host.bc
3 // RUN: %clang_cc1 -verify -triple x86_64 -aux-triple powerpc64le -fopenmp \
4 // RUN: -fopenmp-is-device -fopenmp-host-ir-file-path %t-ppc-host.bc %s \
5 // RUN: -fsyntax-only
7 void foo(__ibm128 x); // expected-note {{'foo' defined here}}
9 void loop(int n, __ibm128 *arr) {
10 #pragma omp target parallel
11 for (int i = 0; i < n; ++i) {
12 // expected-error@+1 {{'foo' requires 128 bit size '__ibm128' type support, but target 'x86_64' does not support it}}
13 foo(arr[i]);