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