aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/missing_builtin_arg_in_initializer.zig
blob: cdbebf54577e72ef3f7283c0c3c9a33fda8413b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
comptime {
    const a = @as();
}
comptime {
    const b = @bitCast();
}
comptime {
    const c = @as(u32);
}

// error
// backend=stage2
// target=native
//
// :2:15: error: expected 2 arguments, found 0
// :5:15: error: expected 1 argument, found 0
// :8:15: error: expected 2 arguments, found 1