Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
union_unresolved_layout.zig
pretty
plain
permalink
blame
history
•
15 lines
•
178 B
1
const std = @import("std");
2
3
const U = union(enum) {
4
foo: u8,
5
bar: f64,
6
};
7
8
pub fn main() !void {
9
const t = U.foo;
10
_ = t;
11
}
12
13
// run
14
// backend=selfhosted,llvm
15
//