mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
8 lines
187 B
Zig
8 lines
187 B
Zig
const expect = @import("std").testing.expect;
|
|
|
|
test "volatile" {
|
|
const mmio_ptr: *volatile u8 = @ptrFromInt(0x12345678);
|
|
try expect(@TypeOf(mmio_ptr) == *volatile u8);
|
|
}
|
|
|
|
// test
|