summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/WithC/main.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-14 15:32:44 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-14 15:34:06 (GMT)
commit8d75d8dc72a0ac4502991891782a2c84df1f61c3 (patch)
treecf7081c5075e4c0114bc0ee2d7e037207865bf4e /Tests/Cuda/WithC/main.c
parentc4a6135039a417087b478c031849337316022263 (diff)
downloadCMake-8d75d8dc72a0ac4502991891782a2c84df1f61c3.zip
CMake-8d75d8dc72a0ac4502991891782a2c84df1f61c3.tar.gz
CMake-8d75d8dc72a0ac4502991891782a2c84df1f61c3.tar.bz2
Tests: Add case for CUDA with C but not C++
An executable using CUDA and C should link as CUDA.
Diffstat (limited to 'Tests/Cuda/WithC/main.c')
-rw-r--r--Tests/Cuda/WithC/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Cuda/WithC/main.c b/Tests/Cuda/WithC/main.c
new file mode 100644
index 0000000..f9101a7
--- /dev/null
+++ b/Tests/Cuda/WithC/main.c
@@ -0,0 +1,6 @@
+extern int use_cuda(void);
+
+int main()
+{
+ return use_cuda();
+}