aboutsummaryrefslogtreecommitdiff
path: root/lib/std/special/init-lib/src/main.zig
blob: 747bb08573c1d6322417b5b8550631ad2ca1bad9 (plain)
1
2
3
4
5
6
7
8
9
10
const std = @import("std");
const testing = std.testing;

export fn add(a: i32, b: i32) i32 {
    return a + b;
}

test "basic add functionality" {
    testing.expect(add(3, 7) == 10);
}