aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors
diff options
context:
space:
mode:
Diffstat (limited to 'test/cases/compile_errors')
-rw-r--r--test/cases/compile_errors/builtin_call_with_invalid_param.zig12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/cases/compile_errors/builtin_call_with_invalid_param.zig b/test/cases/compile_errors/builtin_call_with_invalid_param.zig
new file mode 100644
index 0000000000..b0ce2c13b2
--- /dev/null
+++ b/test/cases/compile_errors/builtin_call_with_invalid_param.zig
@@ -0,0 +1,12 @@
+export fn builtinCallBoolFunctionInlineWithVoid() void {
+ @call(.always_inline, boolFunction, .{{}});
+}
+
+fn boolFunction(_: bool) void {}
+
+// error
+// backend=stage2
+// target=native
+//
+// :2:43: error: expected type 'bool', found 'void'
+// :5:20: note: parameter type declared here