mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 00:44:32 +01:00
8 lines
200 B
Zig
8 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
|