zig/doc/langref/runtime_overflow.zig

10 lines
149 B
Zig
Raw Normal View History

const std = @import("std");
pub fn main() void {
var byte: u8 = 255;
byte += 1;
std.debug.print("value: {}\n", .{byte});
}
// exe=fail