| author | |
| committer | |
| log | 557268a4480d88411dd6f0278afb767320ca66f8 |
| tree | c25fd1f5dec8fc068ee6c15ac5cdab1a3632fb48 |
| parent | 0e3cd5bb1ee555a9ccfb90c1bbb0e363ca25d2d6 |
1 files changed, 2 insertions(+), 0 deletions(-)
test/stage2/x86_64.zig+2| ... | ... | @@ -1709,6 +1709,8 @@ pub fn addCases(ctx: *TestContext) !void { |
| 1709 | 1709 | \\ var x: u32 = undefined; |
| 1710 | 1710 | \\ const maybe_x = byPtr(&x); |
| 1711 | 1711 | \\ assert(maybe_x != null); |
| 1712 | \\ maybe_x.?.* = 123; | |
| 1713 | \\ assert(x == 123); | |
| 1712 | 1714 | \\} |
| 1713 | 1715 | \\ |
| 1714 | 1716 | \\fn byPtr(x: *u32) ?*u32 { |