aboutsummaryrefslogtreecommitdiff
path: root/test/link/static_lib_as_system_lib/main.zig
blob: 0b9c46217fa05106ea8676cc33215930f69a5c19 (plain)
1
2
3
4
5
6
7
8
const std = @import("std");
const expect = std.testing.expect;
const c = @cImport(@cInclude("a.h"));

test "import C add" {
    const result = c.add(2, 1);
    try expect(result == 3);
}