aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Interpreter/CUDA/sanity.cu
blob: ef9d68df464dd58168ebbea7f838ec51c9dfdb14 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: cat %s | clang-repl --cuda | FileCheck %s

extern "C" int printf(const char*, ...);

__global__ void test_func() {}

test_func<<<1,1>>>();
printf("CUDA Error: %d", cudaGetLastError());
// CHECK: CUDA Error: 0

%quit