aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/too_big_packed_struct.zig
blob: bedc4a72a65fcef47c6a77186b0c2ff74fd4b19a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pub export fn entry() void {
    const T = packed struct {
        a: u65535,
        b: u65535,
    };
    @compileLog(@sizeOf(T));
}

// error
// backend=stage2
// target=native
//
// :2:22: error: size of packed struct '131070' exceeds maximum bit width of 65535