mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
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);
|
|
}
|