xref: /minix3/external/bsd/llvm/dist/clang/test/Frontend/stdlang.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -x cuda -std=c++11 -DCUDA %s
2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -x cl -std=c99 -DOPENCL %s
3*0a6a1f1dSLionel Sambuc // expected-no-diagnostics
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc #if defined(CUDA)
6*0a6a1f1dSLionel Sambuc   __attribute__((device)) void f_device();
7*0a6a1f1dSLionel Sambuc #elif defined(OPENCL)
8*0a6a1f1dSLionel Sambuc   kernel void func(void);
9*0a6a1f1dSLionel Sambuc #endif
10