summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/EnableStandard/main.cu
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CudaOnly/EnableStandard/main.cu')
-rw-r--r--Tests/CudaOnly/EnableStandard/main.cu23
1 files changed, 23 insertions, 0 deletions
diff --git a/Tests/CudaOnly/EnableStandard/main.cu b/Tests/CudaOnly/EnableStandard/main.cu
new file mode 100644
index 0000000..f219583
--- /dev/null
+++ b/Tests/CudaOnly/EnableStandard/main.cu
@@ -0,0 +1,23 @@
+
+#include <iostream>
+
+#ifdef _WIN32
+#define IMPORT __declspec(dllimport)
+#else
+#define IMPORT
+#endif
+
+int static_cuda11_func(int);
+IMPORT int shared_cuda11_func(int);
+
+void test_functions()
+{
+ static_cuda11_func(int(42));
+ shared_cuda11_func(int(42));
+}
+
+int main(int argc, char** argv)
+{
+ test_functions();
+ return 0;
+}