diff options
Diffstat (limited to 'test/SemaCUDA/kernel-call.cu')
-rw-r--r-- | test/SemaCUDA/kernel-call.cu | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/SemaCUDA/kernel-call.cu b/test/SemaCUDA/kernel-call.cu new file mode 100644 index 0000000..6d51695 --- /dev/null +++ b/test/SemaCUDA/kernel-call.cu @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +#include "cuda.h" + +__global__ void g1(int x) {} + +template <typename T> void t1(T arg) { + g1<<<arg, arg>>>(1); +} + +int main(void) { + g1<<<1, 1>>>(42); + + t1(1); +} |