aboutsummaryrefslogtreecommitdiff
path: root/test/cases/arithmetic_operations.4.zig
blob: 50bf0df0ce530f6a861a00247ea80f57279326ab (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(42, 42);
    print(3, 5);
}

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

// run
//
// 123456