summaryrefslogtreecommitdiff
path: root/tests/bugs/import-overload-error.hlsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/import-overload-error.hlsl')
-rw-r--r--tests/bugs/import-overload-error.hlsl19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs/import-overload-error.hlsl b/tests/bugs/import-overload-error.hlsl
new file mode 100644
index 000000000..328bb5b26
--- /dev/null
+++ b/tests/bugs/import-overload-error.hlsl
@@ -0,0 +1,19 @@
+//TEST:COMPARE_HLSL: -profile cs_5_0 -target dxbc-assembly -no-checking
+
+#ifdef __SLANG__
+__import import_overload_error;
+#else
+
+void foo(int a) {}
+void foo(float b) {}
+
+#endif
+
+void main()
+{
+// Note(tfoley): futzing around with tokens to
+// make sure error message gets reported at a
+// consistent location between languages.
+int a;
+foo();
+}