repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
PCH
/
cuda-kernel-call.cu
blob
ffb0c1444fe69a6ae3478b3e9e76ca9b01f84ab1
1
// RUN: %clang_cc1 -emit-pch -o %t %s
2
// RUN: %clang_cc1 -include-pch %t -fsyntax-only %s
3
4
#ifndef HEADER
5
#define HEADER
6
// Header.
7
8
#include "Inputs/cuda.h"
9
10
void kcall(void (*kp)()) {
11
kp<<<1, 1>>>();
12
}
13
14
__global__ void kern() {
15
}
16
17
#else
18
// Using the header.
19
20
void test() {
21
kcall(kern);
22
kern<<<1, 1>>>();
23
}
24
25
#endif