mirror of
https://github.com/ziglang/zig.git
synced 2024-11-29 00:22:33 +00:00
65e4725aba
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`.
7 lines
94 B
C
7 lines
94 B
C
#include "a.h"
|
|
#include "b.h"
|
|
|
|
int32_t sub(int32_t a, int32_t b) {
|
|
return add(a, -1 * b);
|
|
}
|