Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaCUDA/call-kernel-from-kernel.cu @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 2e18cbf3894f |
children |
line wrap: on
line source
// RUN: %clang_cc1 %s --std=c++11 -triple nvptx -emit-llvm -o - \ // RUN: -verify -fcuda-is-device -fsyntax-only -verify-ignore-unexpected=note #include "Inputs/cuda.h" __global__ void kernel1(); __global__ void kernel2() { kernel1<<<1,1>>>(); // expected-error {{reference to __global__ function 'kernel1' in __global__ function}} }