aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend/stdlang.c
blob: 71997f1403c398f6d7ceaf5b6ad1bc5847029d38 (plain) (blame)
1
2
3
4
5
6
7
8
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