Aaron Ballman | a670c20 | 2014-05-29 16:39:42 +0000 | [diff] [blame] | 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 |