summaryrefslogtreecommitdiff
path: root/Tests/HIP/InferHipLang1/main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/HIP/InferHipLang1/main.cxx')
-rw-r--r--Tests/HIP/InferHipLang1/main.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/HIP/InferHipLang1/main.cxx b/Tests/HIP/InferHipLang1/main.cxx
new file mode 100644
index 000000000..987b6c651
--- /dev/null
+++ b/Tests/HIP/InferHipLang1/main.cxx
@@ -0,0 +1,19 @@
+
+#include <iostream>
+
+#ifdef __HIP_PLATFORM_HCC__
+# error "__HIP_PLATFORM_HCC__ propagated to C++ compilation!"
+#endif
+
+#ifdef __HIP_ROCclr__
+# error "__HIP_ROCclr__ propagated to C++ compilation!"
+#endif
+
+int interface_hip_func(int);
+
+int main(int argc, char** argv)
+{
+ interface_hip_func(int(42));
+
+ return 0;
+}