diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-12-08 22:21:49 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-12-08 22:21:49 +0200 |
| commit | ee9fc54cd032b6ac0fcaa422aa9c2826fa370bfa (patch) | |
| tree | 27572b3b063b780f3b82970c04f94981a017409d /test/behavior/bugs | |
| parent | 7826e28bd38876e253f5842f53177dd9f45caa9a (diff) | |
| download | zig-ee9fc54cd032b6ac0fcaa422aa9c2826fa370bfa.tar.gz zig-ee9fc54cd032b6ac0fcaa422aa9c2826fa370bfa.zip | |
TypedValue: fix handling of tuples represented as empty_struct_value
Diffstat (limited to 'test/behavior/bugs')
| -rw-r--r-- | test/behavior/bugs/13785.zig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/behavior/bugs/13785.zig b/test/behavior/bugs/13785.zig new file mode 100644 index 0000000000..cef117f486 --- /dev/null +++ b/test/behavior/bugs/13785.zig @@ -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{} }); +} |
