| author | |
| committer | |
| log | ad4627ea3b645e4dd51397fe4a2d92878c2bd9bf |
| tree | 469a8791f6dc2db200108ee02f2da843f20ab8e3 |
| parent | 34684725aa728e392368a5743e1a2405328d5788 |
3 files changed, 2 insertions(+), 5 deletions(-)
src/codegen/c.zig+1-1| ... | @@ -842,7 +842,7 @@ pub const DeclGen = struct { | ... | @@ -842,7 +842,7 @@ pub const DeclGen = struct { |
| 842 | .Array => { | 842 | .Array => { |
| 843 | // We are referencing the array so it will decay to a C pointer. | 843 | // We are referencing the array so it will decay to a C pointer. |
| 844 | // NB: arrays are not really types in C so they are either specified in the declaration | 844 | // 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. |
| 846 | return dg.renderType(w, t.elemType()); | 846 | return dg.renderType(w, t.elemType()); |
| 847 | }, | 847 | }, |
| 848 | .Optional => { | 848 | .Optional => { |
test/behavior.zig+1-1| ... | @@ -2,7 +2,6 @@ const builtin = @import("builtin"); | ... | @@ -2,7 +2,6 @@ const builtin = @import("builtin"); |
| 2 | 2 | ||
| 3 | test { | 3 | test { |
| 4 | // Tests that pass for stage1, stage2, and the C backend. | 4 | // Tests that pass for stage1, stage2, and the C backend. |
| 5 | _ = @import("behavior/align.zig"); | ||
| 6 | _ = @import("behavior/basic.zig"); | 5 | _ = @import("behavior/basic.zig"); |
| 7 | _ = @import("behavior/bitcast.zig"); | 6 | _ = @import("behavior/bitcast.zig"); |
| 8 | _ = @import("behavior/bool.zig"); | 7 | _ = @import("behavior/bool.zig"); |
| ... | @@ -42,6 +41,7 @@ test { | ... | @@ -42,6 +41,7 @@ test { |
| 42 | 41 | ||
| 43 | if (builtin.object_format != .c) { | 42 | if (builtin.object_format != .c) { |
| 44 | // Tests that pass for stage1 and stage2 but not the C backend. | 43 | // Tests that pass for stage1 and stage2 but not the C backend. |
| 44 | _ = @import("behavior/align.zig"); | ||
| 45 | _ = @import("behavior/array.zig"); | 45 | _ = @import("behavior/array.zig"); |
| 46 | _ = @import("behavior/atomics.zig"); | 46 | _ = @import("behavior/atomics.zig"); |
| 47 | _ = @import("behavior/basic_llvm.zig"); | 47 | _ = @import("behavior/basic_llvm.zig"); |
test/behavior/int128.zig-3| ... | @@ -32,9 +32,6 @@ test "int128" { | ... | @@ -32,9 +32,6 @@ test "int128" { |
| 32 | 32 | ||
| 33 | buff = minInt(i128); | 33 | buff = minInt(i128); |
| 34 | try expect(buff < 0); | 34 | 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) | ||
| 38 | } | 35 | } |
| 39 | 36 | ||
| 40 | test "truncate int128" { | 37 | test "truncate int128" { |