[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCUDA / call-kernel-from-kernel.cu
blob900efcef43b80a9e86504c87fe0f9a974008437f
1 // RUN: %clang_cc1 %s --std=c++11 -triple nvptx -emit-llvm -o - \
2 // RUN:   -verify -fcuda-is-device -fsyntax-only -verify-ignore-unexpected=note
4 #include "Inputs/cuda.h"
6 __global__ void kernel1();
7 __global__ void kernel2() {
8   kernel1<<<1,1>>>(); // expected-error {{reference to __global__ function 'kernel1' in __global__ function}}