Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
doc
langref
test_volatile.zig
pretty
plain
permalink
blame
history
•
8 lines
•
200 B
1
const expectEqual = @import("std").testing.expectEqual;
2
3
test "volatile" {
4
const mmio_ptr: *volatile u8 = @ptrFromInt(0x12345678);
5
try expectEqual(*volatile u8, @TypeOf(mmio_ptr));
6
}
7
8
// test