aboutsummaryrefslogtreecommitdiff
path: root/test/cases/decl_value_arena.zig
blob: 42ed310b6f9d5f121a42b2d41cac30ccc6c31649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pub const Protocols: struct {
    list: *const fn (*Connection) void = undefined,
    handShake: type = struct {
        const stepStart: u8 = 0;
    },
} = .{};

pub const Connection = struct {
    streamBuffer: [0]u8 = undefined,
    __lastReceivedPackets: [0]u8 = undefined,

    handShakeState: u8 = Protocols.handShake.stepStart,
};

pub fn main() void {
    var conn: Connection = undefined;
    _ = &conn;
}

// run
//