summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/ResolveDeviceSymbols/file1.cu
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CudaOnly/ResolveDeviceSymbols/file1.cu')
-rw-r--r--Tests/CudaOnly/ResolveDeviceSymbols/file1.cu10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/CudaOnly/ResolveDeviceSymbols/file1.cu b/Tests/CudaOnly/ResolveDeviceSymbols/file1.cu
new file mode 100644
index 0000000..1ce63bf
--- /dev/null
+++ b/Tests/CudaOnly/ResolveDeviceSymbols/file1.cu
@@ -0,0 +1,10 @@
+
+#include "file1.h"
+
+result_type __device__ file1_func(int x)
+{
+ result_type r;
+ r.input = x;
+ r.sum = x * x;
+ return r;
+}