aboutsummaryrefslogtreecommitdiff
path: root/test/cases/arithmetic_operations.2.zig
blob: be4ec466f18dadab06cbdd4e86785e6886ed5d55 (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(8, 9);
    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
//
// 12345678123