aboutsummaryrefslogtreecommitdiff
path: root/test/link/interdependent_static_c_libs/main.zig
blob: 08a35c5ddbbf913ed8290bafd3fc76c4aed482f5 (plain)
1
2
3
4
5
6
7
8
9
const std = @import("std");
const expect = std.testing.expect;

extern fn sub(a: i32, b: i32) i32;

test "import C sub" {
    const result = sub(2, 1);
    try expect(result == 1);
}