stage2: Fix comptime array initialization

This is a follow-up to 9dc98fba, which made comptime initialization
patterns for union/struct more robust, especially when storing to
comptime-known pointers (and globals).

Resolves #13063.
This commit is contained in:
Cody Tapscott
2022-11-01 09:22:31 -07:00
parent 59af6417bb
commit ff699722da
3 changed files with 68 additions and 60 deletions
+1
View File
@@ -210,6 +210,7 @@ test {
builtin.zig_backend != .stage2_wasm and
builtin.zig_backend != .stage2_c)
{
_ = @import("behavior/bugs/13063.zig");
_ = @import("behavior/bugs/11227.zig");
_ = @import("behavior/export.zig");
}