stage2: augment stage2 test to test optional payload lowering

This commit is contained in:
Jakub Konka 2022-01-01 14:29:31 +01:00
parent 0e3cd5bb1e
commit 557268a448

View File

@ -1709,6 +1709,8 @@ pub fn addCases(ctx: *TestContext) !void {
\\ var x: u32 = undefined;
\\ const maybe_x = byPtr(&x);
\\ assert(maybe_x != null);
\\ maybe_x.?.* = 123;
\\ assert(x == 123);
\\}
\\
\\fn byPtr(x: *u32) ?*u32 {