summaryrefslogtreecommitdiff
path: root/tests/diagnostics/call-argument-type.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diagnostics/call-argument-type.slang')
-rw-r--r--tests/diagnostics/call-argument-type.slang11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/diagnostics/call-argument-type.slang b/tests/diagnostics/call-argument-type.slang
new file mode 100644
index 000000000..d9663147f
--- /dev/null
+++ b/tests/diagnostics/call-argument-type.slang
@@ -0,0 +1,11 @@
+//TEST:SIMPLE:
+// call function with wrong argument type
+
+struct A {};
+struct B {};
+
+void f(A a) {}
+void g(B b)
+{
+ f(b);
+}