mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
8 lines
187 B
Zig
8 lines
187 B
Zig
const std = @import("std");
|
|
const expect = std.testing.expect;
|
|
const c = @cImport(@cInclude("b.h"));
|
|
|
|
test "import C sub" {
|
|
const result = c.sub(2, 1);
|
|
try expect(result == 1);
|
|
}
|