Jakub Konka bd926e5ea0 add standalone tests for the new linker bug fixes
This is just a temp addition until I figure out how to tweak
the stage2 test harness to add the ability to test the linker too.
2021-12-15 10:31:29 +01:00

10 lines
192 B
Zig

const std = @import("std");
extern var foo: i32;
extern var bar: i32;
test {
try std.testing.expect(@ptrToInt(&foo) % 4 == 0);
try std.testing.expect(@ptrToInt(&bar) % 4096 == 0);
}