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

pub fn main() void {
    print(4, 2);
    print(3, 7);
}

fn print(a: u32, b: u32) void {
    const str = "123456789";
    const len = a | b;
    _ = std.os.write(1, str[0..len]) catch {};
}

// run
//
// 1234561234567