diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-08-09 10:07:55 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-08-09 10:09:17 -0400 |
| commit | 57470e833e4ac545a75ad7b3dd6830fa666cd325 (patch) | |
| tree | 382d0275366f2b425abd946ed34471ea4302dc58 /test/cases/compile_errors/builtin_call_with_invalid_param.zig | |
| parent | 736df276632ad66294a7491a5e35a039dd2c836f (diff) | |
| download | zig-57470e833e4ac545a75ad7b3dd6830fa666cd325.tar.gz zig-57470e833e4ac545a75ad7b3dd6830fa666cd325.zip | |
Module: implement `span` for `.call_arg` of a `@call`
Closes #16750
Diffstat (limited to 'test/cases/compile_errors/builtin_call_with_invalid_param.zig')
| -rw-r--r-- | test/cases/compile_errors/builtin_call_with_invalid_param.zig | 12 |
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 |
