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

// error
//
// :2:22: error: size of packed struct '131070' exceeds maximum bit width of 65535