aboutsummaryrefslogtreecommitdiff
path: root/test/behavior.zig
diff options
context:
space:
mode:
authorMatthew Hall <matthew@quickbeam.me.uk>2021-12-23 18:40:27 +0000
committerAndrew Kelley <andrew@ziglang.org>2021-12-27 14:42:25 -0800
commit4266795743d86efc763ecadbc155d068ca1ec45a (patch)
treebec0277bd6f1e847bbbb2437d1bf64ac968e160c /test/behavior.zig
parent17046674a745faaa34cf2646b9cf43455b12aba9 (diff)
downloadzig-4266795743d86efc763ecadbc155d068ca1ec45a.tar.gz
zig-4266795743d86efc763ecadbc155d068ca1ec45a.zip
stage2: make tests/behaviour/void.zig work with c backend
* fix initialisation of void* fields of structs (initialises to 0xaa.. rather than {}) * don't generate struct fields when the field type does not have codegen bits * in airAlloc generate a void* literal if the element type does not have codegen bits
Diffstat (limited to 'test/behavior.zig')
-rw-r--r--test/behavior.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior.zig b/test/behavior.zig
index 96f8121fa2..8a7e44c784 100644
--- a/test/behavior.zig
+++ b/test/behavior.zig
@@ -55,6 +55,7 @@ test {
_ = @import("behavior/translate_c_macros.zig");
_ = @import("behavior/underscore.zig");
_ = @import("behavior/while.zig");
+ _ = @import("behavior/void.zig");
if (builtin.object_format != .c) {
// Tests that pass for stage1 and stage2 but not the C backend and wasm backend.
@@ -94,7 +95,6 @@ test {
_ = @import("behavior/switch.zig");
_ = @import("behavior/undefined.zig");
_ = @import("behavior/union.zig");
- _ = @import("behavior/void.zig");
_ = @import("behavior/widening.zig");
if (builtin.zig_is_stage2) {