summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/EnableStandard/shared.cu
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CudaOnly/EnableStandard/shared.cu')
-rw-r--r--Tests/CudaOnly/EnableStandard/shared.cu8
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/CudaOnly/EnableStandard/shared.cu b/Tests/CudaOnly/EnableStandard/shared.cu
index 28555b3..ccdd0b2 100644
--- a/Tests/CudaOnly/EnableStandard/shared.cu
+++ b/Tests/CudaOnly/EnableStandard/shared.cu
@@ -1,9 +1,15 @@
#include <type_traits>
+#ifdef _WIN32
+#define EXPORT __declspec(dllexport)
+#else
+#define EXPORT
+#endif
+
using tt = std::true_type;
using ft = std::false_type;
-int __host__ shared_cuda11_func(int x)
+EXPORT int __host__ shared_cuda11_func(int x)
{
return x * x + std::integral_constant<int, 17>::value;
}