aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/builtin_call_with_invalid_param.zig
blob: b0ce2c13b207e86b338d420ff6fa02007736f57f (plain)
1
2
3
4
5
6
7
8
9
10
11
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