master
 1const expect = @import("std").testing.expect;
 2
 3test "comptime pointers" {
 4    comptime {
 5        var x: i32 = 1;
 6        const ptr = &x;
 7        ptr.* += 1;
 8        x += 1;
 9        try expect(ptr.* == 3);
10    }
11}
12
13// test