diff options
| author | drew <reserveblue@protonmail.com> | 2021-11-14 19:08:14 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-11-16 16:51:31 -0700 |
| commit | ad4627ea3b645e4dd51397fe4a2d92878c2bd9bf (patch) | |
| tree | 469a8791f6dc2db200108ee02f2da843f20ab8e3 | |
| parent | 34684725aa728e392368a5743e1a2405328d5788 (diff) | |
| download | zig-ad4627ea3b645e4dd51397fe4a2d92878c2bd9bf.tar.gz zig-ad4627ea3b645e4dd51397fe4a2d92878c2bd9bf.zip | |
small changes + align tests obviously shouldn't have passed
| -rw-r--r-- | src/codegen/c.zig | 2 | ||||
| -rw-r--r-- | test/behavior.zig | 2 | ||||
| -rw-r--r-- | test/behavior/int128.zig | 3 |
3 files changed, 2 insertions, 5 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 7dabf3bf9e..554a60ad65 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -842,7 +842,7 @@ pub const DeclGen = struct { .Array => { // We are referencing the array so it will decay to a C pointer. // NB: arrays are not really types in C so they are either specified in the declaration - // or are already pointed to; our only job is to render the element's type. + // or are already pointed to; our only job is to render the element type. return dg.renderType(w, t.elemType()); }, .Optional => { diff --git a/test/behavior.zig b/test/behavior.zig index 0abc15035b..739aeabb94 100644 --- a/test/behavior.zig +++ b/test/behavior.zig @@ -2,7 +2,6 @@ const builtin = @import("builtin"); test { // Tests that pass for stage1, stage2, and the C backend. - _ = @import("behavior/align.zig"); _ = @import("behavior/basic.zig"); _ = @import("behavior/bitcast.zig"); _ = @import("behavior/bool.zig"); @@ -42,6 +41,7 @@ test { if (builtin.object_format != .c) { // Tests that pass for stage1 and stage2 but not the C backend. + _ = @import("behavior/align.zig"); _ = @import("behavior/array.zig"); _ = @import("behavior/atomics.zig"); _ = @import("behavior/basic_llvm.zig"); diff --git a/test/behavior/int128.zig b/test/behavior/int128.zig index 76b12ef1d9..4b0232feb8 100644 --- a/test/behavior/int128.zig +++ b/test/behavior/int128.zig @@ -32,9 +32,6 @@ test "int128" { buff = minInt(i128); try expect(buff < 0); - - // This should be uncommented once wrapping arithmetic is implemented for 128 bit ints: - // try expect(buff < 0 and (buff -% 1) > 0) } test "truncate int128" { |
