mirror of
https://github.com/ziglang/zig.git
synced 2025-12-13 17:53:07 +00:00
Tests a scenario where the linker line has the following: ``` main.o libA.a libB.a ``` where `main.o` pulls a symbol from `libB.a`, which in turn is dependent on a symbol from `libA.a`.
9 lines
183 B
Zig
9 lines
183 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);
|
|
expect(result == 1);
|
|
}
|