mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +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.
23 lines
407 B
Zig
23 lines
407 B
Zig
const S = struct {
|
|
const foo = 2;
|
|
const bar = 2;
|
|
const baz = 2;
|
|
a: struct {
|
|
a: u32,
|
|
b: u32,
|
|
},
|
|
const foo1 = 2;
|
|
const bar1 = 2;
|
|
const baz1 = 2;
|
|
b: usize,
|
|
};
|
|
comptime {
|
|
_ = S;
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :9:5: error: declarations are not allowed between container fields
|
|
// :5:5: note: field before declarations here
|
|
// :12:5: note: field after declarations here
|