authorgravatar for reserveblue@protonmail.comdrew <reserveblue@protonmail.com> 2021-11-14 19:08:14-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-11-16 16:51:31-07:00
logad4627ea3b645e4dd51397fe4a2d92878c2bd9bf
tree469a8791f6dc2db200108ee02f2da843f20ab8e3
parent34684725aa728e392368a5743e1a2405328d5788

small changes + align tests obviously shouldn't have passed


3 files changed, 2 insertions(+), 5 deletions(-)

src/codegen/c.zig+1-1
......@@ -842,7 +842,7 @@ pub const DeclGen = struct {
842842 .Array => {
843843 // We are referencing the array so it will decay to a C pointer.
844844 // NB: arrays are not really types in C so they are either specified in the declaration
845 // or are already pointed to; our only job is to render the element's type.
845 // or are already pointed to; our only job is to render the element type.
846846 return dg.renderType(w, t.elemType());
847847 },
848848 .Optional => {
test/behavior.zig+1-1
......@@ -2,7 +2,6 @@ const builtin = @import("builtin");
22
33test {
44 // Tests that pass for stage1, stage2, and the C backend.
5 _ = @import("behavior/align.zig");
65 _ = @import("behavior/basic.zig");
76 _ = @import("behavior/bitcast.zig");
87 _ = @import("behavior/bool.zig");
......@@ -42,6 +41,7 @@ test {
4241
4342 if (builtin.object_format != .c) {
4443 // Tests that pass for stage1 and stage2 but not the C backend.
44 _ = @import("behavior/align.zig");
4545 _ = @import("behavior/array.zig");
4646 _ = @import("behavior/atomics.zig");
4747 _ = @import("behavior/basic_llvm.zig");
test/behavior/int128.zig-3
......@@ -32,9 +32,6 @@ test "int128" {
3232
3333 buff = minInt(i128);
3434 try expect(buff < 0);
35
36 // This should be uncommented once wrapping arithmetic is implemented for 128 bit ints:
37 // try expect(buff < 0 and (buff -% 1) > 0)
3835}
3936
4037test "truncate int128" {