summaryrefslogtreecommitdiffstats
path: root/test/Frontend/stdlang.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Frontend/stdlang.c')
-rw-r--r--test/Frontend/stdlang.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Frontend/stdlang.c b/test/Frontend/stdlang.c
new file mode 100644
index 0000000..71997f1
--- /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
OpenPOWER on IntegriCloud