aboutsummaryrefslogtreecommitdiff
path: root/test/cases/union_unresolved_layout.zig
blob: 11eca081fb03088efc82c36640bd3b23ebc22120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const std = @import("std");

const U = union(enum) {
    foo: u8,
    bar: f64,
};

pub fn main() !void {
    const t = U.foo;
    _ = t;
}

// run
// backend=selfhosted,llvm
//