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