brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 0bad473 Raw
30 lines · c
1// RUN: %clang_cc1 -x cuda -std=c++11 -DCUDA %s2// RUN: %clang_cc1 -x cl -DOPENCL %s3// RUN: %clang_cc1 -x cl -cl-std=cl -DOPENCL %s4// RUN: %clang_cc1 -x cl -cl-std=cl1.0 -DOPENCL %s5// RUN: %clang_cc1 -x cl -cl-std=cl1.1 -DOPENCL %s6// RUN: %clang_cc1 -x cl -cl-std=cl1.2 -DOPENCL %s7// RUN: %clang_cc1 -x cl -cl-std=cl2.0 -DOPENCL %s8// RUN: %clang_cc1 -x cl -cl-std=cl3.0 -DOPENCL %s9// RUN: %clang_cc1 -x cl -cl-std=clc++ -DOPENCL %s10// RUN: %clang_cc1 -x cl -cl-std=clc++1.0 -DOPENCL %s11// RUN: %clang_cc1 -x cl -cl-std=clc++2021 -DOPENCL %s12// RUN: %clang_cc1 -x cl -cl-std=CL -DOPENCL %s13// RUN: %clang_cc1 -x cl -cl-std=CL1.1 -DOPENCL %s14// RUN: %clang_cc1 -x cl -cl-std=CL1.2 -DOPENCL %s15// RUN: %clang_cc1 -x cl -cl-std=CL2.0 -DOPENCL %s16// RUN: %clang_cc1 -x cl -cl-std=CL3.0 -DOPENCL %s17// RUN: %clang_cc1 -x cl -cl-std=CLC++ -DOPENCL %s18// RUN: %clang_cc1 -x cl -cl-std=CLC++1.0 -DOPENCL %s19// RUN: %clang_cc1 -x cl -cl-std=CLC++2021 -DOPENCL %s20// RUN: not %clang_cc1 -x cl -std=c99 -DOPENCL %s 2>&1 | FileCheck --check-prefix=CHECK-C99 %s21// RUN: not %clang_cc1 -x cl -cl-std=invalid -DOPENCL %s 2>&1 | FileCheck --check-prefix=CHECK-INVALID %s22// CHECK-C99: error: invalid argument '-std=c99' not allowed with 'OpenCL'23// CHECK-INVALID: error: invalid value 'invalid' in '-cl-std=invalid'24 25#if defined(CUDA)26  __attribute__((device)) void f_device();27#elif defined(OPENCL)28  kernel void func(void);29#endif30