mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
backend=auto (now the default if backend is omitted) means to let the compiler pick whatever backend it wants as the default. This is important for platforms where we don't yet have a self-hosted backend, such as loongarch64. Also purge a bunch of redundant target=native.
18 lines
354 B
Zig
18 lines
354 B
Zig
fn f2(u64) u64 {
|
|
return x;
|
|
}
|
|
fn f3(*x) u64 {
|
|
return x;
|
|
}
|
|
fn f1(x) u64 {
|
|
return x;
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :1:7: error: missing parameter name
|
|
// :4:7: error: missing parameter name
|
|
// :7:7: error: missing parameter name or type
|
|
// :7:7: note: if this is a name, annotate its type: 'x: T'
|
|
// :7:7: note: if this is a type, give it a name: 'name: x'
|