zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

test_volatile.zig (187B) - Raw


      1 const expect = @import("std").testing.expect;
      2 
      3 test "volatile" {
      4     const mmio_ptr: *volatile u8 = @ptrFromInt(0x12345678);
      5     try expect(@TypeOf(mmio_ptr) == *volatile u8);
      6 }
      7 
      8 // test