forked from OSchip/llvm-project
10 lines
238 B
C
10 lines
238 B
C
|
// RUN: %clang_cc1 -x cuda -std=c++11 -DCUDA %s
|
||
|
// RUN: %clang_cc1 -x cl -std=c99 -DOPENCL %s
|
||
|
// expected-no-diagnostics
|
||
|
|
||
|
#if defined(CUDA)
|
||
|
__attribute__((device)) void f_device();
|
||
|
#elif defined(OPENCL)
|
||
|
kernel void func(void);
|
||
|
#endif
|