test: remove @cImport usage in interdependent_static_c_libs

This commit is contained in:
Alex Rønne Petersen 2025-09-16 16:31:03 +02:00
parent 4dba253cd2
commit ab1946de92
No known key found for this signature in database

View File

@ -1,8 +1,9 @@
const std = @import("std");
const expect = std.testing.expect;
const c = @cImport(@cInclude("b.h"));
extern fn sub(a: i32, b: i32) i32;
test "import C sub" {
const result = c.sub(2, 1);
const result = sub(2, 1);
try expect(result == 1);
}