mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
9 lines
200 B
Zig
9 lines
200 B
Zig
const expectEqual = @import("std").testing.expectEqual;
|
|
|
|
test "volatile" {
|
|
const mmio_ptr: *volatile u8 = @ptrFromInt(0x12345678);
|
|
try expectEqual(*volatile u8, @TypeOf(mmio_ptr));
|
|
}
|
|
|
|
// test
|