summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/WithC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Cuda/WithC/main.c')
-rw-r--r--Tests/Cuda/WithC/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/Cuda/WithC/main.c b/Tests/Cuda/WithC/main.c
new file mode 100644
index 0000000..cb5fddc
--- /dev/null
+++ b/Tests/Cuda/WithC/main.c
@@ -0,0 +1,14 @@
+extern int use_cuda(void);
+
+#ifdef _WIN32
+#include <windows.h>
+#endif
+
+int main()
+{
+#ifdef _WIN32
+ /* Use an API that requires CMake's "standard" C libraries. */
+ GetOpenFileName(NULL);
+#endif
+ return use_cuda();
+}