stdlang.c 238 B

123456789
  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. #if defined(CUDA)
  5. __attribute__((device)) void f_device();
  6. #elif defined(OPENCL)
  7. kernel void func(void);
  8. #endif