mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
16 lines
167 B
Zig
16 lines
167 B
Zig
const std = @import("std");
|
|
|
|
const U = union(enum) {
|
|
foo: u8,
|
|
bar: f64,
|
|
};
|
|
|
|
pub fn main() !void {
|
|
const t = U.foo;
|
|
_ = t;
|
|
}
|
|
|
|
// run
|
|
// backend=llvm
|
|
//
|