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.
25 lines
400 B
Zig
25 lines
400 B
Zig
const E = enum {
|
|
*u32,
|
|
};
|
|
const U = union {
|
|
*u32,
|
|
};
|
|
const S = struct {
|
|
a: u32,
|
|
*u32,
|
|
};
|
|
const T = struct {
|
|
u32,
|
|
[]const u8,
|
|
|
|
const a = 1;
|
|
};
|
|
|
|
// error
|
|
//
|
|
// :2:5: error: enum field missing name
|
|
// :5:5: error: union field missing name
|
|
// :8:5: error: tuple field has a name
|
|
// :15:5: error: tuple declarations cannot contain declarations
|
|
// :12:5: note: tuple field here
|