Jakub Konka 65e4725aba Add standalone test for interdep C archives
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`.
2021-04-13 13:32:59 +02:00

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);
}