TypedValue: fix handling of tuples represented as empty_struct_value

This commit is contained in:
Veikka Tuominen
2022-12-08 22:21:49 +02:00
parent 7826e28bd3
commit ee9fc54cd0
4 changed files with 17 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
const builtin = @import("builtin");
const std = @import("std");
const S = packed struct { a: u0 = 0 };
test {
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
var a: u8 = 0;
try std.io.null_writer.print("\n{} {}\n", .{ a, S{} });
}