mirror of
https://github.com/ziglang/zig.git
synced 2025-12-12 01:03:13 +00:00
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.
10 lines
192 B
Zig
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);
|
|
}
|