aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/wrong_number_of_arguments.zig
blob: b83a7a4a37069f54cd4fff83cba880f74bfe8c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export fn a() void {
    c(1);
}
fn c(d: i32, e: i32, f: i32) void {
    _ = d;
    _ = e;
    _ = f;
}

// error
// backend=stage2
// target=native
//
// :2:5: error: expected 3 argument(s), found 1
// :4:1: note: function declared here