diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
commit | 9f4dbff6669c8037f3b036bcf580d14f1a4f12a5 (patch) | |
tree | 47df2c12b57214af6c31e47404b005675b8b7ffc /test/Frontend/stdlang.c | |
parent | f73d5f23a889b93d89ddef61ac0995df40286bb8 (diff) |
Notes
Diffstat (limited to 'test/Frontend/stdlang.c')
-rw-r--r-- | test/Frontend/stdlang.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Frontend/stdlang.c b/test/Frontend/stdlang.c new file mode 100644 index 000000000000..71997f1403c3 --- /dev/null +++ b/test/Frontend/stdlang.c @@ -0,0 +1,9 @@ +// 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 |