summaryrefslogtreecommitdiff
path: root/Tests/HIP/EnableStandard/shared.hip
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/HIP/EnableStandard/shared.hip')
-rw-r--r--Tests/HIP/EnableStandard/shared.hip15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/HIP/EnableStandard/shared.hip b/Tests/HIP/EnableStandard/shared.hip
new file mode 100644
index 000000000..204225863
--- /dev/null
+++ b/Tests/HIP/EnableStandard/shared.hip
@@ -0,0 +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;
+EXPORT int __host__ shared_hip11_func(int x)
+{
+ return x * x + std::integral_constant<int, 17>::value;
+}